LB Booster
IDE and Compiler >> Compiler >> Fonts problem http://lbb.conforums.com/index.cgi?board=compiler&action=display&num=1362582011 Fonts problem
Post by pierscintilla on Mar 6th, 2013, 2:00pm
Greetings. Fantastic work! I have a small problem: a not perfect control of the fonts type of the GUI. the instruction of my code (print # main, "font Arial 6 17") is not exactly translated and the fonts of the GUI results too large. It's normal? Thanks in advance
Re: Fonts problem
Post by Richard Russell on Mar 6th, 2013, 9:30pm
the instruction of my code (print # main, "font Arial 6 17") is not exactly translated and the fonts of the GUI results too large. It's normal?
Yes, unfortunately LBB cannot set the width and height of the font independently. When you specify "font Arial 6 17" the width value 6 will be ignored by LBB and only the height value 17 will be used to control the character size.
You may find you can achieve a closer approximation to the required font by selecting "font Arial_Narrow 6 21".
Richard. Re: Fonts problem
Post by pierscintilla on Mar 7th, 2013, 1:44pm
Ok, small problem remaining: increasing the character height alignment in the text boxes moves downward (the lower part of the character disappears) evidently because there is a minimum margin with respect to the upper edge that wants to keep.
Anyway many thanks
Re: Fonts problem
Post by Richard Russell on Mar 7th, 2013, 1:57pm
Ok, small problem remaining: increasing the character height alignment in the text boxes moves downward
This is happening within Windows so is out of my control. As I expect you know, LBB's text and graphics are created using a simple wrapper around the Windows API, so whatever Windows does LBB does. This is one reason why LBB creates such small executables.
I have no idea how LB4 does it. Maybe it renders text and graphics using its own code rather than Windows.
Richard.
Re: Fonts problem
Post by pierscintilla on Mar 7th, 2013, 3:26pm