Author Topic: True Type Fonts  (Read 489 times)

Offline Drex

  • Mc. Print
  • *
  • Posts: 3
    • View Profile
True Type Fonts
« 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.

Offline Qedo

  • Dr. Type
  • ****
  • Posts: 350
  • to program what I have todo how should I program?
    • View Profile
Re: True Type Fonts
« Reply #1 on: 2021-Jun-27 »
I confirm I tried it but it doesn't work

Offline Drex

  • Mc. Print
  • *
  • Posts: 3
    • View Profile
Re: True Type Fonts
« Reply #2 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.

Offline Qedo

  • Dr. Type
  • ****
  • Posts: 350
  • to program what I have todo how should I program?
    • View Profile
Re: True Type Fonts
« Reply #3 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

Offline Drex

  • Mc. Print
  • *
  • Posts: 3
    • View Profile
Re: True Type Fonts
« Reply #4 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  ::)


Offline Qedo

  • Dr. Type
  • ****
  • Posts: 350
  • to program what I have todo how should I program?
    • View Profile
Re: True Type Fonts
« Reply #5 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

Offline Qedo

  • Dr. Type
  • ****
  • Posts: 350
  • to program what I have todo how should I program?
    • View Profile
Re: True Type Fonts
« Reply #6 on: 2021-Jun-28 »
and also works with the third color parameter.
Great
 =D

Offline dreamerman

  • Global Moderator
  • Dr. Type
  • *******
  • Posts: 400
    • View Profile
    • my personal website
Re: True Type Fonts
« Reply #7 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.
Check my source code editor for GLBasic - link Update: 20.04.2020