LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Fonts problem

Marco,

I ran your program, and it confirmed what I thought that you were trying to do: you are trying to display both character sets in the same application by switching between a "normal" font and a cyrillic font.

Like I said earlier, this is a use case that is not supported in CVI. I'm not sure whether other applications support this (I couldn't do it with Notepad or Wordpad, but I'm not sure about others).

I realize that you were able to do this in CVI 8.0. I confirmed that myself with your application. But this was completely incidental. It was never intended to work. And unfortunately, I can't think of any workaround that would allow you to do this in 8.0.1.

So I am sorry that you're no longer able to do this. But let me try to explain briefly what happened. In 8.0, there was a bug in which the default GUI font would not display the native character sets properly, whenever the global language was set to a non-western character set. You can verify this if you change your setting to Russian, and then load your .uir file and paste the Russian text into the text box control. If you set the text box's font to "Arial CYR" you will see the text properly. But in the Edit Text Box dialog, in the "Default Value" control, you will not see the text properly. And this was something that we definitely needed to support. It turned out that the only way to support it was to interpret every font family only in its native character set (i.e. the Control Panel setting). This means that regardless of which flavor of Arial you specify, you always get the character set specified in the Control Panel. This is also why you don't see all those variations of Arial in the font browser.

The only way that I can think of supporting this (in the future) is for the CVI UI library to provide "character set" attributes everywhere where users can specify the font (name, size, bold, character set, etc...) Then, the user could always override the default character set with a specific one.
If it turns out that more people would find this useful, we'll consider implementing this in a future version of CVI.

Sorry again for the change between 8.0 and 8.0.1. I wish we had been aware of this specific change at the time, so that we could have tried to mitigate it somehow...

Luis
0 Kudos
Message 11 of 17
(1,710 Views)
CVI should support unicode in the future version . I vote for this
0 Kudos
Message 12 of 17
(1,566 Views)
hey, don't scream so loud ! we are not deaf !

and definitely, i second you on that point, at least for the GUI library.
0 Kudos
Message 13 of 17
(1,556 Views)
Hi Luis
and all guys....

a lot time ago i wrote a message for Fonts problem between 8.0 and 8.0.1 CVI
version.
Luis answere:

> Marco, I ran your program, and it confirmed what I thought that you were
> trying to do: you are trying to display both character sets in the same
> application by switching between a "normal" font and a cyrillic font.Like
> I said earlier, this is a use case that is not supported in CVI. I'm not
> sure whether other applications support this (I couldn't do it with
> Notepad or Wordpad, but I'm not sure about others).I realize that you were
> able to do this in CVI 8.0. I confirmed that myself with your application.
> But this was completely incidental. It was never intended to work. And
> unfortunately, I can't think of any workaround that would allow you to do
> this in 8.0.1.So I am sorry that you're no longer able to do this. But let
> me try to explain briefly what happened. In 8.0, there was a bug in which
> the default GUI font would not display the native character sets properly,
> whenever the global language was set to a non-western character set. You
> can verify this if you change your setting to Russian, and then load your
> .uir file and paste the Russian text into the text box control. If you set
> the text box's font to "Arial CYR" you will see the text properly. But in
> the Edit Text Box dialog, in the "Default Value" control, you will not see
> the text properly. And this was something that we definitely needed to
> support. It turned out that the only way to support it was to interpret
> every font family only in its native character set (i.e. the Control Panel
> setting). This means that regardless of which flavor of Arial you specify,
> you always get the character set specified in the Control Panel. This is
> also why you don't see all those variations of Arial in the font
> browser.The only way that I can think of supporting this (in the future)
> is for the CVI UI library to provide "character set" attributes everywhere
> where users can specify the font (name, size, bold, character set, etc...)
> Then, the user could always override the default character set with a
> specific one.If it turns out that more people would find this useful,
> we'll consider implementing this in a future version of CVI.Sorry again
> for the change between 8.0 and 8.0.1. I wish we had been aware of this
> specific change at the time, so that we could have tried to mitigate it
> somehow...Luis

Did you change anythings in new version ???
How is now the situation ???

Thank's
Marco


0 Kudos
Message 14 of 17
(1,392 Views)

Hello marco_cgd,

 

Thanks for providing this feedback.

We have addressed your concern in an upcoming version of CVI (set to release by the end of the year).

If you are current on service (SSP), you will automatically receive the new version in the mail.

 

Thanks 

0 Kudos
Message 15 of 17
(1,383 Views)

I'm experiencing problems with text labels not showing up for an application which was ported from CVI 6.0 to CVI 9.0.  I've managed to fix most of the problems by setting the Character Set to "Western" for the controls that were defined in the UIR.  I'm still left with problems with text not showing up in Popup windows and EasyTab tab labels.

  

I need your advise on how to resolve these issues.

 

Thanks.

0 Kudos
Message 16 of 17
(1,155 Views)
Please ignore my previous post in this thread.  I've resolved the issues simply by going into Regional & Language Options Advanced and switched to English (United Kingdom) then back to English (US) and that some how fix my problems.
0 Kudos
Message 17 of 17
(1,146 Views)