Page 1 of 1
How can I get the name of the missing font?
Posted: Sat Oct 23, 2021 2:39 pm
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
Re: How can I get the name of the missing font?
Posted: Sun Oct 24, 2021 3:18 am
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.
Re: How can I get the name of the missing font?
Posted: Mon Oct 25, 2021 6:04 am
by Zinn
Luowy, thank you very much. It works.
- Helmut