LB Booster
« Fonts problem »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:59am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Fonts problem  (Read 981 times)
pierscintilla
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 30
xx 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
« Last Edit: Mar 6th, 2013, 2:00pm by pierscintilla » User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx 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.
User IP Logged

pierscintilla
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 30
xx 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
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx 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.
User IP Logged

pierscintilla
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 30
xx Re: Fonts problem
« Reply #4 on: Mar 7th, 2013, 3:26pm »

may be.
Thanks

Pier
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls