LB Booster
« Regional settings »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 04:35am



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: Regional settings  (Read 282 times)
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Regional settings
« Thread started on: Apr 23rd, 2014, 08:39am »

LBB automatically adapts its behavior according to the regional settings of your PC. For example if your language setting requires the use of a special version of a font, LBB will do that automatically. Similarly, the DATE$() function will automatically return the date in your configured language.

That is what you would expect in any 'compliant' Windows application, but unfortunately Liberty BASIC 4 does not consistently respect the regional settings and therefore an incompatibility can arise.

For example if your program explicitly selects a language variant of a font (e.g. courier_new_tur which is the Turkish version of Courier New) this will not work in LBB - the font name will not be recognised and Windows will fall back to using an alternative, and probably unsuitable, font.

If you encounter issues of this sort, and need your program to work in both LB and LBB, you will need to use a conditional test to ensure correct operation. For example:

Code:
if instr(Platform$, "LBB") then
  #s.fs, "font courier_new 10"
else
  #s.fs, "font courier_new_tur 10"
end if  

Richard.
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