dkeene Posted May 31, 2020 Posted May 31, 2020 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? Quote
Sherzod Posted May 31, 2020 Posted May 31, 2020 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: Quote
dkeene Posted May 31, 2020 Author Posted May 31, 2020 Thank you Sherzod; does this mean that my font needs to reside on the internet somewhere? what if I wish to use a font that's existing on my server? Quote
Sherzod Posted May 31, 2020 Posted May 31, 2020 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. Quote
dkeene Posted June 11, 2020 Author Posted June 11, 2020 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 Quote
Sherzod Posted June 12, 2020 Posted June 12, 2020 7 hours ago, dkeene said: adding the string reference to it in the UniServerModule.CustomFiles Hello, Have you tried? CustomFiles: files/FONTS/AntiqueOlive.ttf Quote
dkeene Posted June 13, 2020 Author Posted June 13, 2020 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 Quote
Sherzod Posted June 13, 2020 Posted June 13, 2020 On 6/12/2020 at 1:50 AM, dkeene said: MimeTable.AddMimeType('ttf', 'application/Win64/files/fonts/', false); MimeTable.AddMimeType('ttf', 'application/font', False); Quote
dkeene Posted June 13, 2020 Author Posted June 13, 2020 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. Quote
Sherzod Posted June 13, 2020 Posted June 13, 2020 There are examples on the forum, sorry, maybe I do not fully understand your case. For example you can analyze this post: Quote
dkeene Posted June 13, 2020 Author Posted June 13, 2020 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? Quote
Sherzod Posted June 13, 2020 Posted June 13, 2020 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? Quote
dkeene Posted June 13, 2020 Author Posted June 13, 2020 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. Quote
Abaksoft Posted June 13, 2020 Posted June 13, 2020 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. Quote
dkeene Posted June 14, 2020 Author Posted June 14, 2020 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.