How can I get the name of the missing font?

Usage of the framework, compiler and tools
Post Reply
Zinn
Posts: 123
Joined: Mon Nov 24, 2014 10:47 am
Location: Frankfurt am Main
Contact:

How can I get the name of the missing font?

Post by Zinn »

When an odc document uses a font, which I have not installed on my computer, how can I get the name of this missing font? Selecting the text and clicking with right mouse button -> Properties doesn't show the missing font name. It shows the font name which is used instead.
- Helmut
luowy
Posts: 87
Joined: Thu Dec 17, 2015 1:32 pm

Re: How can I get the name of the missing font?

Post by luowy »

refer to HostDialog.TypefaceDialog, you can get a funtion

Code: Select all

	PROCEDURE FormalTypeface*;
		VAR p: Properties.StdProp; 
	BEGIN
		Properties.CollectStdProp(p);
		IF Properties.typeface IN p.known THEN
			Log.String(p.typeface);Log.Ln;
		END
	END FormalTypeface;
and a test menu

Code: Select all

	"Formal Typeface"	""	"HostDialog.FormalTypeface"	"StdCmds.SelectionGuard"
	"Test"	""	"StdCmds.Font('Test')"	"StdCmds.SelectionGuard"
select a text and set a test typeface, then check it's formal name.
Zinn
Posts: 123
Joined: Mon Nov 24, 2014 10:47 am
Location: Frankfurt am Main
Contact:

Re: How can I get the name of the missing font?

Post by Zinn »

Luowy, thank you very much. It works.

- Helmut
Post Reply