Blam Posted April 6, 2011 Posted April 6, 2011 A client asked if it would be possible to convert all of the text in a bunch of drawings to TrueType font. They asked if there was a lisp routine that would do this or some program. There reasons for this is to be able to print a PDF with searchable text. But it sounds like there are many complex issues to this problem in my superficial searching of an answer to this. I don't know if there is a magic bullet solution. Has anyone attempted this? Even if you haven't, feel free to comment or suggest anything. Quote
eldon Posted April 6, 2011 Posted April 6, 2011 Why look for complications? Just change the Font in Text Style from a SHX font to a TTF font. Might use a script to do it. Perhaps your client thinks that enquiring about a lisp routine makes them sound as if they know something about it. Quote
alanjt Posted April 6, 2011 Posted April 6, 2011 Why look for complications? Just change the Font in Text Style from a SHX font to a TTF font. Might use a script to do it. Perhaps your client thinks that enquiring about a lisp routine makes them sound as if they know something about it. Would be the simplest route, but I hope the OP chooses an alternate font with a matching typeset width. eg. I've seen fonts floating around the net that are TTF versions of SHX files. Find the one you want (everything will look the same), put it in your font folder and follow eldon's suggested procedure. Quote
Tyke Posted April 6, 2011 Posted April 6, 2011 Just do it as eldon said. See this link: http://www.ehow.com/how_7731472_do-convert-shx-ttf.html Quote
alanjt Posted April 6, 2011 Posted April 6, 2011 Just do it as eldon said. See this link: http://www.ehow.com/how_7731472_do-convert-shx-ttf.html LoL, is that really all that's involved to successfully 'convert' an SHX to TTF? Quote
Tyke Posted April 6, 2011 Posted April 6, 2011 I've not tried it Alan, but it seems simple enough Quote
dbroada Posted April 6, 2011 Posted April 6, 2011 I might try that when I get back to work. Not sure I would try it on my home computer first though. Quote
Blam Posted April 6, 2011 Author Posted April 6, 2011 Try the method suggested to convert a .shx to .ttf. Changed romans.shx in the c:\program files\AutocAD 2011\fonts directory to romans.ttf. Did not show up in the font list in the textstyle dialog. Tried copying it over to c:\windows\fonts and it said the font was not a valid font (Win 7, 64bit). But I do think the client could be happy with another font, like arial or someting. I probably could try to find a lisp that will mass change fonts. But the drawing examples I'm looking at have a bunch of text styles (some nasty ones that have binding residue in them like ROMANDS$0$XREF). Quote
dbroada Posted April 6, 2011 Posted April 6, 2011 I probably could try to find a lisp that will mass change fonts. I will repeat what everybody else has said, this is easily done with a script to change your text style, there is no need to do this with LISP. Quote
rkmcswain Posted April 6, 2011 Posted April 6, 2011 LoL, is that really all that's involved to successfully 'convert' an SHX to TTF? I'm going to use that method to convert DGN files to DWG from now on.... ;-) Quote
rkmcswain Posted April 6, 2011 Posted April 6, 2011 Try the method suggested to convert a .shx to .ttf. Changed romans.shx in the c:\program files\AutocAD 2011\fonts directory to romans.ttf. Did not show up in the font list in the textstyle dialog. Tried copying it over to c:\windows\fonts and it said the font was not a valid font (Win 7, 64bit). That is because that write up is totally bogus. Quote
Blam Posted April 6, 2011 Author Posted April 6, 2011 I wish it was a text style, but it's a bunch of jumbled text styles with no set pattern of name. It looks like it would have to have some conditional statements like "If font is X, change it to Y." Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.