Menu

Font size selection too limited

Anonymous
2021-12-04
2021-12-06
  • Anonymous

    Anonymous - 2021-12-04

    Page doesn't allow a wide enough number choice....I need to use about 80 font, so the panel can be seen from about 20 feet away. Page arbitrarily only let's me scroll up to size 24, though obviously more are avail...I just change the font size=24 in the file to whatever (like 80 or 90 )and the giant font appears perfectly during the run. HOWEVER when using Page I can't size the boxes properly unless I can see the actual font during that layout, which creates a big editing rehash mess. Simply increase the scroll limit to 100 , or let me know if there is something I can adjust in Page.

     
  • Greg Walters

    Greg Walters - 2021-12-05

    This issue is somewhat taken care of in the next release (soon, I hope.). The additional font sizes are 28, 30, 36, 48 and 72.

    You are correct that you can change the font size in the project_support.py file to whatever size you wish. At this point, the largest font size that is currently being supported directly from the designer is 72.

    Are you sure that you need 80 or larger?

    Greg

     
  • Anonymous

    Anonymous - 2021-12-05

    I need between 90 & 100 bold...that seems to give about 3/8 inch chars , so the 7-inch LCD can be read from across the room (maybe 15-20 feet). If the drop down has limited range, maybe make it so you can also type in the desired size (like word does ). If you are making clocks, weather monitors and such things, then larger fonts are needed!

     
  • Greg Walters

    Greg Walters - 2021-12-05

    I'll pass your concerns to Don. I'm sure he will do what he can. As I said, the new version is due out soon.

    Greg

     
  • Greg Walters

    Greg Walters - 2021-12-05

    I have a work around for you in PAGE 6.2.

    Place your widget on the design form (toplevel) and make sure it is selected. Assuming your widget supports font sizes (like a Label widget), click in the Entry box that is associated with the font. Press the {End} key or use the right arrow to go to the end of the text in the Entry. You can backspace over the current size (let's say 24), then change it to 80 or 100. DO NOT press Enter, but click into another Entry widget like the height attribute. Your original widget should now be at whatever font size you put in the box. Save and generate your Python GUI module. You should see that the configuration of the font attribute for the widget is set as you wished.

    self.Label1.configure(font="-family {DejaVu Sans} -size 120")
    

    When you save and exit PAGE then re-enter the project, your font should still be at 120 point or whatever size you set it to.

    Greg

     

    Last edit: Greg Walters 2021-12-05
  • Anonymous

    Anonymous - 2021-12-06

    Ah, that works!!! THANKS GREG!! The attribute box is rather narrow, so only part of the name appears & I couldn't see the font size was also there (or I would have tried changing it).

    I wonder if this has always been the case, since I did something 3 years ago & used big (say size 40) fonts & didn't remember needing to add code lines (or my memory is foggy). Maybe I found this & forgot (or I am delerious)...This makes layout MUCH easier!!

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.