Author Topic: How to check if font was replaced with FONTALT?  (Read 1757 times)

0 Members and 1 Guest are viewing this topic.

Peter2

  • Swamp Rat
  • Posts: 653
How to check if font was replaced with FONTALT?
« on: December 11, 2016, 03:29:58 PM »
Opening a DWG with missing fonts brings up the following message in the textscreen:

"Setzt [simplex.shx] für [FooFont] ein." (German)
"Use [Simplex.shx] instead of [FooFont]" (something similar in English

Is it possible to check later in the drawing-session via Lisp if a font was replaced?


Background of the question:
I opened a drawing and got the message for two fonts.
But - the fonts where there, and a check via Lisp (findfile fonts..) confirmed they were there. So just the opening made a problem for maybe some milliseconds ..
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: How to check if font was replaced with FONTALT?
« Reply #1 on: December 12, 2016, 05:17:36 AM »
Are you saying that you get this alert even though the fonts are not replaced?
It is worth checking if the search path is constant.

Peter2

  • Swamp Rat
  • Posts: 653
Re: How to check if font was replaced with FONTALT?
« Reply #2 on: December 12, 2016, 06:31:48 AM »
Are you saying that you get this alert even though the fonts are not replaced?..
The other way ....

I just started to check the logs, but under thousands of drawings I found (at the moment one, maybe more ..) a drawing where

- the open command did not find the fonts (which are TTF and locally installed!) and replaced them
- the following lisp correctly found them and said "everything OK, let's print"

This is why I'm thinking not only to check
- "if the fonts are found" (which is already implemeted) but also
- if a replacing happened through open-command
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: How to check if font was replaced with FONTALT?
« Reply #3 on: December 12, 2016, 10:23:50 AM »
Maybe this only happens for the first dwg that is opened in a CAD session?

To check if this occurs you may have to:
1. Use the _COPYHIST command.
2. Read the history from the clipboard.
3. Parse the history to find this alert.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: How to check if font was replaced with FONTALT?
« Reply #4 on: December 12, 2016, 10:28:29 AM »
Or change your LOGFILEMODE and check the .log file.

Peter2

  • Swamp Rat
  • Posts: 653
Re: How to check if font was replaced with FONTALT?
« Reply #5 on: December 12, 2016, 10:46:27 AM »
OK, thanks.

(I hoped for a undocumented sysvar or something else, but I have to wait ....)
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23