cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Translate the entire conversation x

What is the correct way of installing an NDX font?

MV_10574393
6-Contributor

What is the correct way of installing an NDX font?

I get really confused about this, it should be as simple to put the font to the load point of the font folder? 
The one where config.pro points with the pro_font_dir? I have it all set up
magyar_iso30985font.ndx
hu_latin_1.fnt
hu_ascii.fnt

The ndx contains the fnt names:
hu_ascii.fnt
hu_latin_1.fnt

The font is loaded, but where the hungarian (ő for example) char should be shown, there is only squares like this:

xtop_b28LJZvyV0.png

 

 

The font is proper, and was working before, any ideas?

19 REPLIES 19

Hi,

testing procedure follows:

1.]

Add following line at the end of parametric.psf file

ENV=PRO_LANG=english

english keyword is related to usascii directories.

2.]

Save magyar_iso30985font.ndx into Common Files\text\usascii directory (it contains other ndx files)

Example ... E:\PTC\Creo10_060\Creo 10.0.6.0\Common Files\text\usascii

I think you will have to add 3rd line into your ndx file ... open font.ndx and look at its contents

ascii.fnt
special.fnt
latin_1.fnt

3.]

Save your fnt files into Common Files\x86e_win64\text\usascii directory (it contains other fnt files)

Example ... E:\PTC\Creo10_060\Creo 10.0.6.0\Common Files\x86e_win64\text\usascii

 


Martin Hanák

Hey Martin,

 

Thanks for the info, but it does not work.

 

I can see the NDX(in Creo UI), and IF i remove the .fnt files from the usacii folder, I get a message that the font can't be loaded so it seems everything is at the right place. My problem presist though.

What you are saying about the 3nd line would make sense, but for example the 

C:\Program Files\PTC\Creo 12.4.0.0\Common Files\text\usascii\font3d.ndx only have 2 lines. ALSO this font was working before! And it does work on another PC for some odd reason. 

 

The env variable is set.

 

Any more idea?

 

Hi,

if you can, please send following files packed in single zip file

  • ndx file
  • fnt files
  • txt file containing hungarian text
  • drawing file created in CR12

Tomorrow I will do test in my CR12 


Martin Hanák

Sorry for the delay,

 

Here is all the files you axed for, for some reaosn I couln't use the upload to here function so I used onedrive:

for Martin.zip

 

Thanks for your help!


@MV_10574393 wrote:

Sorry for the delay,

 

Here is all the files you axed for, for some reaosn I couln't use the upload to here function so I used onedrive:

for Martin.zip

 

Thanks for your help!


Hi,

please look at the following picture. Letters underlined in red are displayed as squares in Creo. This should mean that these letters are not included in the font definition.

MartinHanak_0-1752585515781.png

I changed font to Arial WGL. Below you can see the result.

MartinHanak_1-1752585798373.png

MartinHanak_2-1752585854483.png

 


Martin Hanák

MartinHanak_0-1752586668139.png

 


Martin Hanák

Ok, thats very odd, I double checked everything before replying to you, copied the files from another pc to this one, and now it works. I could swear to god these files have never been altered in anyway. 

Could you please check if it works if you overwrite the fnt files? with the ones I attached here? I'm really confused here.


@MV_10574393 wrote:

Ok, thats very odd, I double checked everything before replying to you, copied the files from another pc to this one, and now it works. I could swear to god these files have never been altered in anyway. 

Could you please check if it works if you overwrite the fnt files? with the ones I attached here? I'm really confused here.


Hi,

 

1.] fnt files are identical

 

2.] squares in Creo note are side effect of adding following line into parametric.psf

ENV=PRO_LANG=english

I removed this line and tested adding note using hungarian_text.txt

MartinHanak_0-1752658219016.png

 

3.] in a4-famex_m.frm file all texts in table are displayed using iso3985font

You have to change font to hu_font to be able to create new drawing

MartinHanak_1-1752658805064.png

 

4.] in ft1490-01-100-09.drw file all texts in table are displayed using iso3985font

You have to change font to hu_font to be able to "repair" this drawing.

MartinHanak_2-1752658943457.png

 


Martin Hanák

Hi,

... and one more idea ...

Maybe the "problematic" PC is set to English environment. This would mean that Creo behaves as if there was line ENV=PRO_LANG=english in the parametric.psf file.

 

Suggestion: Add ENV=PRO_LANG=czech in the parametric.psf file. This setting produced correct hungarian text in my installation.


Martin Hanák

Hey Martin, 

 

You were  actually right, simply removing the ENV variable (or adding czech) fixed the issue, but here comes another problem with that, namely  that this way modelcheck breaks. 

https://community.ptc.com/t5/System-Administration/ModelCheck-cannot-start/m-p/956063/highlight/true#M31079

 

How can I make both work at the same time?


@MV_10574393 wrote:

Hey Martin, 

 

You were  actually right, simply removing the ENV variable (or adding czech) fixed the issue, but here comes another problem with that, namely  that this way modelcheck breaks. 

https://community.ptc.com/t5/System-Administration/ModelCheck-cannot-start/m-p/956063/highlight/true#M31079

 

How can I make both work at the same time?


Hi,

unfortunately the ModelCheck implementation is not perfect. If I set ENV=PRO_LANG=czech then Creo is looking for subdirectory named czech (more details provided below). But this directory does not exist in standard Creo installation. In that case, ModelCheck should use the usascii directory (it exists), but it cannot do that.

 

The solution is simple - you have to make a copy of usascii directory and name it czech.

 

usascii subdirectory location in my installation:

E:\PTC\Creo10_060\Creo 10.0.6.0\Common Files\modchk\text\usascii

Therefore in my case I have to make a copy of usascii directory and name it czech to create following directory

E:\PTC\Creo10_060\Creo 10.0.6.0\Common Files\modchk\text\czech

 


Martin Hanák

I guess that is a workaround, but do you happen to know how the env variable affects the font? There is only one folder named Czech if common files (or to be honest in all my pc) and it has nothing to do with fonts. What is the logic here?

 


@MV_10574393 wrote:

I guess that is a workaround, but do you happen to know how the env variable affects the font? There is only one folder named Czech if common files (or to be honest in all my pc) and it has nothing to do with fonts. What is the logic here?

 


Hi,

see below how Creo proprietary fonts work.

 

If I set ENV=PRO_LANG=czech then Creo is looking for subdirectory named czech (more details provided below). But this directory does not exist in standard Creo installation. In that case, Creo uses fonts defined in the usascii directory (it exists).

 

Example:

E:\PTC\Creo10_060\Creo 10.0.6.0\Common Files\text\czech ... contains *.ndx files

E:\PTC\Creo10_060\Creo 10.0.6.0\Common Files\x86e_win64\text\czech ... contains *.fnt files

 


Martin Hanák

But I don't have czech installed, there for it should use the usascii folder, just like when I don't have anything in the psf file? By default it should use the usascii folder, no? but how come when I remove all settings from the psf it works?

\Common Files\text\czech ... contains *.ndx files I do not have this.


@MV_10574393 wrote:

But I don't have czech installed, there for it should use the usascii folder, just like when I don't have anything in the psf file? By default it should use the usascii folder, no? but how come when I remove all settings from the psf it works?

\Common Files\text\czech ... contains *.ndx files I do not have this.


Hi,

unfortunately I don't understand what problem you are solving now.

Simple question: What region is set in your Windows? My setting follows.

MartinHanak_0-1753792334462.png

 


Martin Hanák

I simply want to undestand how can a format work with one setting and not the other, when seeminly there are no difference between the folder structure.

MV_10574393_0-1753792998391.png

What I simply see is that IF I set to usascii, it breaks the font, for no reason at all.

 

Hi,

your region is set to Hungary, so I expect that you live in Hungary. Why you did not consult your problems with Hungarian Creo reseller?

 


Martin Hanák

Hi MV_10574393

I wanted to let you know that there is a new reply to your topic.

If you are in a position to respond to this question, that would be great.

Thanks for using the PTC Community,

Best regards,
Catalina
PTC Community Moderator


Catalina
PTC Community Moderator
PTC

Hello @MV_10574393,

 

It looks like you have some responses from a community expert. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution. 
Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.

Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal

Top Tags