Setting text to Arial Baltic True Type font in lisp

Setting text to Arial Baltic True Type font in lisp

brent.braaten
Explorer Explorer
1,080 Views
6 Replies
Message 1 of 7

Setting text to Arial Baltic True Type font in lisp

brent.braaten
Explorer
Explorer

Hello, we have a lisp routine that does some basic cleanup in drawings every time we open them.  Recently a change has some down that they want us using Arial Baltic true type font as the default font in our drawings.

 

In the past we've had these two commands in our startup file that made sure certain text styles were defined properly for our office standards:

 

(command "-style" "standard" "simplex.shx" "0" "1" "0" "n" "n" "n")
(command "-style" "architxt" "architxt.shx" "0" "1" "0" "n" "n" "n")

 

I tried adding the following line to the routine to get it to setup Arial font and assign the Arial Baltic font but it keeps crashing in the lisp, I'm guessing it's because it's a windows true type font and not an autocad shx font:


(command "-style" "arial" "Arial Baltic" "0" "1" "0" "n" "n" "n")

 

Any suggestions on what I need to change to get this to work in the startup lisp?

 

Thanks

0 Likes
Accepted solutions (1)
1,081 Views
6 Replies
Replies (6)
Message 2 of 7

pendean
Community Legend
Community Legend
Accepted solution

The actual TTF file is most likely not called that, why not go here C:\Windows\Fonts to find it, right-click to select PROPERTIES and see what the TTF file name is actually called, see if that helps.

 

For example

pendean_0-1696876709454.png

pendean_3-1696876934252.png

 

pendean_1-1696876869031.png

 

Message 3 of 7

brent.braaten
Explorer
Explorer

Turns out the Arial Baltic font is part of the same arial.ttf file that the arial font is part of.

So your answer was correct and means I'm kind of sunk at this time since it looks like what i want to do is not possible.

 

I appreciate the help either way.

 

Thank you and have an awesome rest of your week.

0 Likes
Message 4 of 7

pendean
Community Legend
Community Legend

@brent.braaten wrote:

Turns out the Arial Baltic font is part of the same arial.ttf file that the arial font is part of....


I don't think that's how it works (but I do not have that sub-font): if you double-click on ARIAL you'll see the entire "family" that makes up ARIAL then you can use the same tip I suggested above to get the actual TTF font file name

 

pendean_0-1696884494533.png

 

0 Likes
Message 5 of 7

brent.braaten
Explorer
Explorer

I made a drawing file with just a piece of text in it set to the arial baltic font I was trying to use and saved it.  Then I did an etransmit on the file so that it would bind all the files together including the necessary fonts to make sure exactly which ttf file I needed and the arial.ttf was the one it bound with the etransmit.

 

So it would appear it has to be part of that same file based on that.

 

I will look around and see if I can find the arial baltic font as a stand alone ttf file online and see if that solves the problem eventually.  From the previews it looks like the only difference between the two is baltic has a little thinner lines than straight arial so I'm going to run with it and see if anyone notices for now.

 

For now it's creating an arial text style and setting it as the current text style every time I open an old drawing which is the most important thing for me. 

I appreciate your help in getting me that far, it's a lot better than where I was stuck at when I first posted.

 

Thank you.

0 Likes
Message 6 of 7

Kent1Cooper
Consultant
Consultant

@brent.braaten wrote:

Turns out the Arial Baltic font is part of the same arial.ttf file that the arial font is part of.
....


I have that font option.  When I create a Text Style using it:

Kent1Cooper_0-1696949691462.png

and then check the font file used in that Style with (entget (tblobjname "style" "test")), it includes:

(3 . "arial.ttf")

exactly the same as in the "Standard" Style that uses plain Arial.

Comparing what they look like, stringing together all characters available on my keyboard:

Kent1Cooper_1-1696949977717.png

The upper line is in a Style using plain Arial; the lower Arial Baltic -- I see no difference at all.

 

So I wonder what Arial Baltic is all about, why it exists, etc....

Kent Cooper, AIA
0 Likes
Message 7 of 7

pendean
Community Legend
Community Legend
0 Likes