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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...