Jump to content

Add fonts to the web server


thiago.ferreira

Recommended Posts

  • 2 weeks later...

Hello thiago.ferreira,

to enable the fonts in your application you must add the MimeType.

add the file extensions that you want to allow.

in the OnCreate event ServerModule add:

eg .ttf extension

MimeTable.AddMimeType('ttf', 'application/font', False);
  • Upvote 1
Link to comment
Share on other sites

Hi Marlon,

 

I try to do what you said, using Open San font in my Application. What I did:

 

1. Add MimeTable.AddMimeType('ttf', 'ventas/font', False); in the servermodule OnCreate event. 
2. Create the folder font in my application folder ventas.
2. Install Open San Windows/Font (this allow me to use the font within Unigui (Labels, panels, etc...)
3. Copy Fonts files to ventas/Font directory, as i understood you explain.
4. Compile the app.
5. Run it local and remote. And the font is not Open San, is something like Roman....
 
What did i did wrong. Thanks in advanced.
 
Rafael Liriano
Link to comment
Share on other sites

  • 3 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...