Author |
Topic: Fonts problem (Read 982 times) |
|
pierscintilla
New Member
member is offline
Gender:
Posts: 30
|
|
Fonts problem
« Thread started 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
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: Fonts problem
« Reply #1 on: Mar 6th, 2013, 9:30pm » |
|
on Mar 6th, 2013, 2:00pm, pierscintilla wrote: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.
|
|
Logged
|
|
|
|
pierscintilla
New Member
member is offline
Gender:
Posts: 30
|
|
Re: Fonts problem
« Reply #2 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
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: Fonts problem
« Reply #3 on: Mar 7th, 2013, 1:57pm » |
|
on Mar 7th, 2013, 1:44pm, pierscintilla wrote: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.
|
|
Logged
|
|
|
|
pierscintilla
New Member
member is offline
Gender:
Posts: 30
|
|
Re: Fonts problem
« Reply #4 on: Mar 7th, 2013, 3:26pm » |
|
may be. Thanks
Pier
|
|
Logged
|
|
|
|
|