LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Fonts of cvi under linux

Hello everbody,

I'm trying to port a cvi windows application to linux. I have got the programm working but there is one Problem left. Is there any posibility  to avoid the displacement of the control caused by changing size of the label text. Even if i use the NiDialog font the text didn't have the same size as on my windows machine. So i get overlapping controls and a menu with to big captions.
Is there anybody how have a solution for this problem

Thanks
Stefan
0 Kudos
Message 1 of 6
(3,890 Views)
I'm having the same problem and would love a solution.

The fonts in the /usr/local/natinst/cvi80/samples projects I've compiled don't seem to have the problem, but when I check the *.uir files they appear to be nidialog fonts.

--wally.

0 Kudos
Message 2 of 6
(3,859 Views)
Hi Stefan,

could you try to use another font as NI Dialog is usually MS Sans Sarif?

Kind regards
Carsten
0 Kudos
Message 3 of 6
(3,831 Views)

While I don't have the answer, I will point out that the info on this page needs to be updated by NI to provide the relevant background on how fonts are mapped in current versions of CVI and various operating systems.

0 Kudos
Message 4 of 6
(3,825 Views)
Hello Stefan,

> Hello everbody, I'm trying to port a cvi windows application to linux. I
> have got
> the programm working but there is one Problem left. Is there any
> posibility  to avoid the displacement of the control caused by
> changing
> size of the label text. Even if i use the NiDialog font the text didn't
> have the
> same size as on my windows machine. So i get overlapping controls and a
> menu
> with to big captions.Is there anybody how have a solution for this
> problemThanksStefan

I noticed the same problem and haven't looked deep into it yet as ugly is
fine by me. I'd much rather see better Linux support of CVI than the
gloating messages from NI about Vista support.

Anyway, back to your problem, the correspondance is in [Options][Fonts]. Try
changing them all to fonts that are common between Linux and Windows,
copying TTF files between systems if necessary.
--
Guillaume Dargaud
http://www.gdargaud.net/


0 Kudos
Message 5 of 6
(3,782 Views)
My problems are solved, sort of, by switching all controls and text to use NI meta fonts.  Unfortunately this then means you can't use bold or other text attributes 😞

--wally.

0 Kudos
Message 6 of 6
(3,746 Views)