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 jpcadconsulting347236's Avatar
    Join Date
    2011-09
    Posts
    258
    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.
    James Pertusi

    CAD Applications Consultant
    1 (646) 773 4834
    www.jpcadconsulting.com

  2. #2
    I could stop if I wanted to jpcadconsulting347236's Avatar
    Join Date
    2011-09
    Posts
    258
    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.
    James Pertusi

    CAD Applications Consultant
    1 (646) 773 4834
    www.jpcadconsulting.com

  3. #3
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL
    Posts
    3,046
    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.
    Tom Beauford P.S.M. - Civil 2019 on Windows 10 Enterprise
    Design Analysis - Leon County Public Works/Engineering Wrap [CODE] tags around selected text
    2280 Miccosukee Rd. Tallahassee, FL 32308-5310
    Ph# (850)606-1516 Home Page

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 Blindhole 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
  •