See the top rated post in this thread. Click here

Results 1 to 3 of 3

Thread: Canging TTF font in Text Style via lisp yields incorerect font.

  1. #1
    I could stop if I wanted to
    Join Date
    2011-09
    Posts
    308
    Login to Give a bone
    0

    Default Changing TTF font in Text Style via lisp yields incorerect font.

    Hiya gang.

    This one is stumping me.

    I have this line of code in a script:

    Code:
    IF (TBLSEARCH "STYLE" "MVVA 1-8")
      (command "-style" "MVVA 1-8" "Arial.ttf" "A" "Yes" "No" "0.125" "1" "0.00" "No" "No")
    )
    (IF (TBLSEARCH "STYLE" "MVVA 1-8 Bold")
      (command "-style" "MVVA 1-8 Bold" "ariblk.ttf" "A" "Yes" "No" "0.125" "1" "0.00" "No" "No")
    As you can see, it looks for two text styles (who's fonts are Swiss721) and changes the font to Arial or Arial Black.

    The second section works, changing "MVVA 1-8 Bold" so that it uses Arialblk.ttf (Arial Black).
    The first section however, changes "MVVA 1-8" so that it uses Helvetica. ?!?!?!

    Arial is available and in fact I can change It manually in the Style dialog box.

    Any ideas?
    Last edited by jpcadconsulting347236; 2019-02-27 at 08:09 PM.

  2. #2
    I could stop if I wanted to
    Join Date
    2011-09
    Posts
    308
    Login to Give a bone
    2

    Default Re: Canging TTF font in Text Style via lisp yields incorerect font.

    Got it. Windows font mapping...

    there was an entry in:

    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes

    That was mapping Arial to Helvetica.

    - - - Updated - - -

    Removed that key.

    Restarted WKS.

    Resolved.

  3. #3
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,658
    Login to Give a bone
    0

    Default Re: Canging TTF font in Text Style via lisp yields incorerect font.

    Of course for any other Windows user the font will always be Arial as you've only mapped it on your PC.

Similar Threads

  1. Replies: 1
    Last Post: 2014-08-08, 05:20 PM
  2. Force text style/font
    By donalcommane in forum AutoCAD LT - General
    Replies: 13
    Last Post: 2013-10-21, 09:12 PM
  3. Text Style font change?
    By Mail106941 in forum AutoLISP
    Replies: 5
    Last Post: 2008-05-23, 06:11 PM
  4. Text font shows wrong font - revit to blame?
    By jblack.150078 in forum AutoCAD General
    Replies: 0
    Last Post: 2007-10-10, 08:11 PM
  5. Replies: 5
    Last Post: 2005-01-04, 07:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •