How can I get the name of the missing font?

Usage of the framework, compiler and tools

How can I get the name of the missing font?

Postby Zinn » Sat Oct 23, 2021 2:39 pm

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
Zinn
 
Posts: 114
Joined: Mon Nov 24, 2014 10:47 am
Location: Frankfurt am Main

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

Postby luowy » Sun Oct 24, 2021 3:18 am

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.
luowy
 
Posts: 83
Joined: Thu Dec 17, 2015 1:32 pm

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

Postby Zinn » Mon Oct 25, 2021 6:04 am

Luowy, thank you very much. It works.

- Helmut
Zinn
 
Posts: 114
Joined: Mon Nov 24, 2014 10:47 am
Location: Frankfurt am Main


Return to Common questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron