Jump to content

Font Management


dkeene

Recommended Posts

Hello, all

I have installed a font on my server and would like it to appear on unigui controls. They show up on the development system, but not on remote systems. 

I have enclosed two screen snaps that show the difference.

I tried a forum suggestion:

   MimeTable.AddMimeType('ttf', 'application/font', False);
 

but the results are in the snaps.

Can anyone explain how to get fonts that may not be on the remote user computer to show up on unigui controls?

snap111.png

Snap16.png

Link to comment
Share on other sites

49 minutes ago, dkeene said:

Can anyone explain how to get fonts that may not be on the remote user computer to show up on unigui controls?

Hello,

If I understand you correctly, you need include these fonts (CustomFiles...)

For example, in this post there is a solution for using google font:

 

Link to comment
Share on other sites

1 hour ago, dkeene said:

does this mean that my font needs to reside on the internet somewhere?

No.

1 hour ago, dkeene said:

what if I wish to use a font that's existing on my server?

Yes, of course, you can place it on your server (for example, in the files folder) and include it in your project.

Link to comment
Share on other sites

  • 2 weeks later...

Can someone please show an example of placing a ttf font file (such as Arial.ttf) and adding the string reference to it in the UniServerModule.CustomFiles

i added for example in my win64 debug environment --

c:\MyApplication\Win64\Debug\files\FONTS\AntiqueOlive.ttf

c:\MyApplication\Win64\Debug\files\FONTS\AntiqueOliveBold.ttf

c:\MyApplication\Win64\Debug\files\FONTS\AntiqueOliveItalic.ttf

and on

procedure TUniServerModule.UniGUIServerModuleCreat(Sender: TObject); 

begin

   MimeTable.AddMimeType('ttf', 'application/Win64/files/fonts/', false);

end;

 

what else must I do for custom fonts to appear on remote computers without the font previously installed?

thanks

Doug

 

 

Link to comment
Share on other sites

Sorry this did not work. Could you or someone please outline the steps necessary to make a font on a remote machine

appear on controls as they appear on the server? I added MimeTable.AddMimeType('ttf', 'application/Win64/Debug/files/fonts/', False);

This functionality seems to be fundamental and would be useful.

 

I tried 

files/FONTS/AntiqueOlive.ttf

c:/MyApplication/Win64/Debug/files/FONTS/AntiqueOlive.ttf


c:\MyApplication\Win64\Debug\files\FONTS\AntiqueOlive.ttf

 

 

 

 

 

Can someone please show an example of placing a ttf font file (such as Arial.ttf) and adding the string reference to it in the UniServerModule.CustomFiles

i added for example in my win64 debug environment --

c:\MyApplication\Win64\Debug\files\FONTS\AntiqueOlive.ttf

c:\MyApplication\Win64\Debug\files\FONTS\AntiqueOliveBold.ttf

c:\MyApplication\Win64\Debug\files\FONTS\AntiqueOliveItalic.ttf

and on

procedure TUniServerModule.UniGUIServerModuleCreat(Sender: TObject); 

begin

   MimeTable.AddMimeType('ttf', 'application/Win64/files/fonts/', false);

   MimeTable.AddMimeType('ttf', 'application/Win64/Debug/files/fonts/', false);

end;

 

what else must I do for custom fonts to appear on remote computers without the font previously installed?

thanks

Doug

 

 

Link to comment
Share on other sites

this did not help, unfortunately

any other thoughts? is there a step-by-step guide somewhere

attached: Snap 8 is program run from a remote machine

Snap114 is program run on server. AntiqueOlive font appears on server machine but

is interpreted as TImesNewRoman on remote.

Snap8.png

snap114.png

Link to comment
Share on other sites

I am just trying to make a webpage that I create with a specific font (antiqueolive.ttf) for example, appear the same on a remote computer that does not yet have that font installed. Is this possible or is there no way to do this?

Link to comment
Share on other sites

31 minutes ago, dkeene said:

I am just trying to make a webpage that I create with a specific font (antiqueolive.ttf) for example, appear the same on a remote computer that does not yet have that font installed. Is this possible or is there no way to do this?

What option do you use for deployment?

Link to comment
Share on other sites

i don't know what you mean. i see the web page remotely by typing the address of my server at 8077 as usual. The webpage is built by the server that has the font installed, so why wouldn't the web page appear with the same font correctly? as the two screen snaps show, the local computer has the antiqueolive font but the remote computer shows the same page with a times new roman font.

Link to comment
Share on other sites

6 minutes ago, dkeene said:

i don't know what you mean. i see the web page remotely by typing the address of my server at 8077 as usual. The webpage is built by the server that has the font installed, so why wouldn't the web page appear with the same font correctly? as the two screen snaps show, the local computer has the antiqueolive font but the remote computer shows the same page with a times new roman font.

mmm...

This remember me an old PC with an old google chrome version.

Try to update the browser of this remote computer.

Link to comment
Share on other sites

Thank you Abaksoft, I will try. Unfortunately, my application, which also creates

a PDF using the unique font on the server, don't show the unique font in the file.

I will update the browser and try another browser like firefox.

Link to comment
Share on other sites

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