• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Visual LISP, AutoLISP and General Customization

    Reply
    Distinguished Mentor
    Posts: 1,566
    Registered: ‎05-13-2003

    Font not available (not to be confused with "font does not exist")

    229 Views, 2 Replies
    04-27-2012 08:20 AM

    In some startup automation I have code (AutoLISP) that creates several text styles.  (The code is simple; it just runs the style command.)  With each new release I have carried this code forward, and have had no trouble with it until this release.  When the line runs to create the first style which calls for the use of the "simplex" font, the following error occurs and the rest of the code is interrupted:

    Font not available.

    The simplex.shx font file exists on my machine, and the path to the file (C:\program files\autodesk\autocad 2013\fonts)has been firmly established in my AutoCAD profile.  I have also verified that the simplexTrueType font is installed in Windows 7.

    I think this issue is somehow related to the assignment of this particular font for use by MTEXT, but I don't understand how this is controlled or modified in AutoCAD, and, assuming this assignment existed in previous releases, I also don't understand why this new release of AutoCAD would behave differently.

    Any insights that lead toward a solution would be appreciated.

    Please use plain text.
    Distinguished Mentor
    Moshe-A
    Posts: 681
    Registered: ‎09-14-2003

    Re: Font not available (not to be confused with "font does not exist")

    04-29-2012 12:44 PM in reply to: dmfrazier

    Frazier hi,

     

    this error message is normal and it means the font file is not exist.

    do check again that simplex.shx is on the support file search path

     

    this is has nothing to do with simplexTrueType font

     

    by theway...romans.shx is a good replacement to simplex.shx

     

    Moshe

     

    Please use plain text.
    Distinguished Mentor
    Posts: 1,566
    Registered: ‎05-13-2003

    Re: Font not available (not to be confused with "font does not exist")

    05-07-2012 09:05 AM in reply to: Moshe-A

    Thank you for your response.

    In my original post you will notice that I indicated the file does exist and that the path to the folder containing the file is in my support file search path.  So, neither of those factor into this issue.

    The message is telling me that the font is not available and this unavailability is related to the assignment of this particular font for use by MTEXT.  This is what I am looking for more information about.

    As a work-around, I have changed the code to use the simplex8 font instead, but I would still like to understand this issue better and, since I don't know how this font differs from simplex, figure out a way to get simplex to work (as it has in the past).

    Please use plain text.