Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Sean H. on February 16, 2018, 06:54:13 am



Title: 4ST Using Custom Fonts
Post by: Sean H. on February 16, 2018, 06:54:13 am
Hello everyone. I know you can use custom ttf files for Icons by mapping them in the
image2font.txt file but I was wondering if it's possible to use ttf files for general application
fonts instead of the default Serifs and Sans-Serifs.


Title: Re: 4ST Using Custom Fonts
Post by: Reuben B. on February 19, 2018, 06:50:11 am
Hi Sean,

You may need to rephrase your question to say what it is you are trying to achieve.

The fontfamily field used in .4st can reference any font that is installed on the front-end. 

So in theory, I can take a .ttf font-file, install it onto my Mac, add the appropriate entry in the .4st, and display the appropriate characters from that font-file.  For example I found I could download the .ttf FontAwesome font file from the internet, install it onto my Mac, add the entry in .4st, and display characters using that font to a field and I'd get the FontAwesome characters in a label.  Hardest bit was finding the appropriate number to use in a DISPLAY ASCII(number) TO label

Reuben


Title: Re: 4ST Using Custom Fonts
Post by: Rodrigo V. on March 08, 2018, 02:37:39 pm
Hi Reuben and Sean,

And... is there any 'easy way' to detect if the specified font is available on the frontend system? or maybe a 'easy way' to install it from GDC? we just did some changes in the GWC-JS to embed the 'Open Sans' font with succes but no way to do the same in GDC

Thanks!
Rodrigo