GLBasic forum

Main forum => GLBasic - en => Topic started by: Drex on 2021-Jun-27

Title: True Type Fonts
Post by: Drex on 2021-Jun-27
Hi,

Have been using the trial version of GLbasic for about a year, so have been loading fonts, in the .png format.

I have just purchased the steam version, which says, it supports .ttf fonts, but I can't get them to load.

Can anyone, point me in the right direction ?

Thanks.
Title: Re: True Type Fonts
Post by: Qedo on 2021-Jun-27
I confirm I tried it but it doesn't work
Title: Re: True Type Fonts
Post by: Drex on 2021-Jun-27
Thanks for the reply……

I don’t understand, as it’s advertised, as supported in version 1.6 ?

Oh well, back to steam for a refund, what a waste of time.
Title: Re: True Type Fonts
Post by: Qedo on 2021-Jun-27
if I were you I would wait. Surely the GLB update will come out in a while. Somewhere in the forum I read that there will be and then ..... an excellent language like GLB cannot be discarded for a lack, even if temporary. I'm having a lot of fun with this language
Title: Re: True Type Fonts
Post by: Drex on 2021-Jun-27
I'm  having fun too, with GLbasic.....

I tried Python for a little while, but found it too slow, so I am switching between GLbasic & Javascript\p5.js.

The one downside to using Javascript is, that everything has to be done in the browser window, which can get annoying
at times, but it does support .ttf fonts :)

Hopefully they will implement .ttf in GLbasic soon, still can't understand why it is advertised as being in version 1.6 though  ::)

Title: Re: True Type Fonts
Post by: Qedo on 2021-Jun-28
Counterorder ..... :S

tried with GLB 16,793 and it works.

LOADFONT "FORTE_system.TTF", 1
SETFONT 1.3
PRINT "Print TTF font", 0,0,1 // GLBasic IDE, Version: 16,793
SHOWSCREEN
MOUSEWAIT
END

only it seems with other zoon values, in example 3, the quality is not high

ad maiora
Title: Re: True Type Fonts
Post by: Qedo on 2021-Jun-28
and also works with the third color parameter.
Great
 =D
Title: Re: True Type Fonts
Post by: dreamerman on 2021-Oct-21
Please dont get me wrong but bug happens to everyone, or I would quote now popular catch phrase "mistakes were made" :-)
If you see that something isn't working as it should/feature isn't complete or something post it on forum, such things could get unnoticed. TTF or custom font face swapping is nice but for simpler multi-language support I'm sticking to sprite fonts - much easier to prepare let's say Chinese buttons for small games without messing with Unicode. TTF also has its place and it's own strength.
One good thing in JS is no compilation time, and instant preview for small things, good way is to write small parts of code in JS to check everything and later translate that to final programming language.