Need help setting font by code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I could use a little help.
I have a client that wants us to switch out all the fonts on drawings to be Ture type font to make pdf's searchable. So I wrote a lisp routing changes ‘romans.shx’ to ‘romans_IV25.ttf.’
I am not getting any error with lisp, but it’s not working right. So have two styles, one set by code and one set by the “Text Style” form. When I do an entget they both look the same…
Set by form:
style:((-1 . <Entity name: 208f1283d00>) (0 . STYLE) (330 . <Entity name: 208f0bcd830>) (5 . 3040) (100 .
AcDbSymbolTableRecord) (100 . AcDbTextStyleTableRecord) (2 . Standard_STD) (70 . 0) (40 . 0.0) (41 . 0.85) (50 . 0.0) (71 . 0) (42 . 0.2) (3 . romans_IV25.ttf) (4 . ))
Set by code:
style:((-1 . <Entity name: 208f0d51b30>) (0 . STYLE) (330 . <Entity name: 208f0bcd830>) (5 . 3A63) (100 . AcDbSymbolTableRecord) (100 . AcDbTextStyleTableRecord) (2 . STD) (70 . 0) (40 . 0.0) (41 . 0.85) (50 . 0.0) (71 . 0) (42 . 0.125) (3 . romans_IV25.ttf) (4 . ))
However when I open the ‘Text Style’ form, the one set by code is showing as missing font, even thought it's set to exact same file name.
....any help would be grateful.