Arial font substitution for (LabVIEW for) Linux

Hello,
as LabVIEW was not capable of keeping the font size and spacing constant when running a VI under different Windows versions, screen resolutions etc, I have never used the "application", "system" and "dialog" font options in LabVIEW but have fixed all fonts to Arial 14 pt. This worked wonderful on all Windows systems - without that unnerving problem that control lables overwrite each other and things like that (what always happened when using LabVIEWs "application" font option).
Now, when running the same VIs under LabVIEW for Linux, the font looks terrible, as there is no Arial font in Linux. Does somebody know an easy way to solve this problem without setting all fonts to "application font" in LabVIEW? For instance, any "ini file type" setting in Linux telling the operating system which font to use when Arial is not present, or any free font substitution that we could add to our installer routine that the operating system would use automatically instead of Arial?
Best regards,
Gabs

Unfortunately, your problem is a version of a generic problem faced by GUI programmers of all types - how do you handle varying system fonts?  There are various solutions, based on who your customers are.  You are using one of the easy ones that works well until you start doing cross-platform development.  The main options are, in order or increasing complexity:
Lock the font to a specific font and size.  This works well if your customers are limited to a single platform and are not visually impaired (do not want to use large fonts).
Use system fonts and allow extra space.  This is a compromise that only works in most cases.  Use about 50% extra for small strings and 10% - 20% for larger strings.  This also gives you extra space for localization, should you need it.  Visually impaired customers will run into space issues, because large fonts can be 2X or more larger than the default, system fonts.  Note that the different Windows variants have different font sizes as well.  Windows Vista increased default font sizes, especially for some Asian languages, such as Japanese.
Query the font size on entry into a GUI VI and rescale everything appropriately.  This is hard, since it must be done for every VI with a GUI.  Some system dialogs do not handle large fonts well, so you will probably end up replacing them with your own versions to get good appearance.  You could probably write a system to handle this sort of scaling, but to my knowledge, no one has (please prove me wrong ).  I have always used custom code when needed.
No one really does this well.  Change your system font on a Windows OS to large fonts and note all the problems you run into.  I would recommend option 2, unless you have a lot of extra time.  Your customers will love you if you pull off option 3.
More tips to help.
Do your development on the platform with the largest system fonts.  If this is not possible, change the LabVIEW system fonts of your development system to match the largest size you support.  I usually develop using 13pt Verdana, since it is one of the largest of the variable spaced fonts.
Check your work by using large fonts in Windows.  If it looks good there, it will probably be OK for most uses.
Good luck!
This account is no longer active. Contact ShadesOfGray for current posts and information.

Similar Messages

  • Font Smoothing in LabView for Linux

    Hello,
    I was wondering if anyone has been able to get their fonts in LabView for Linux to be either smoothed using Gnomes subpixel smoother for LCDs, or any other type of anti-aliasing. I currently can use truetype fonts in LabView, and for the most part they do look pretty decent.. btu they are not smoothed at all. Every single application I have loaded has smooth fonts other than LabView. Please let me know if anyone has managed to get this working... and if so, how.
    I am currently using Gentoo with all of my packages updated less than a month ago, with LabView 8.2
    Thanks for any info!

    Unfortunately, we do not support fonts on your operating system. Hopefully another customer is more familiar with this.
    Message Edited by Support on 10-04-2007 01:33 PM
    Charlie M. CLD

  • Hp driver for labview for hp8156a attenuator

    I am looking for a hp8156a driver for labview. There is not one posted in the driver section of this site. Thanks

    Here is a link to the programming manual. Section 8 shows the commands. It will take some work, but you can write your own drivers.
    http://www.home.agilent.com/upload/cmc_upload/All/opat0500.pdf
    Message Edited by unclebump on 07-12-2005 04:21 PM

  • Trial Version for LabVIEW for Mac

    I got shinny new MacBook Pro for Christmas and am itching to try out LabVIEW for Mac.  Is there a trial version available?  I still have to develop for Windows (got VMWare Fusion for that), but I'm still curious how the Mac version behaves.
    Solved!
    Go to Solution.

    Dennis Knutson wrote:
    Turns out that there is but with problems on the latest OD.
    By golly, I completely forgot about that!

  • Has anyone ever written a driver for LabVIEW for Omega CN9500 process contollers w/Modbus protocol over RS485?

    Omega has a protocol manual to facilitate this on their web site

    Jay,
    Most folks use an OPC Server, such as Lookout Protocol Drivers (sold under package "IA OPC Servers") to communicate with devices using the Modbus protocol from LabVIEW. The KnowledgeBase below describes this method in detail.
    Drivers for Communicating to PLCs, RTUs, and Other Industrial Hardware"
    As for direct Modbus protocol VIs for LabVIEW - I have never personally used them, but I have seen many Developer Exchange posts in the past where folks have used and recommended them. Simply search this developer exchange for "modbus AND labview" and numberous discussion threads on this topic will be returned.
    Regards,
    Greg
    Caesar
    Applications Engineer
    National Instruments

  • How to use g++ to build shared libraries for labview in linux?

    does anyone knows if it's possible to compile a shared library in linux with g++ that could be recognized by labview?
    thks
    JP

    Hi JP,
    Yes you can use g++ to build shared libraries that labview can use. You'll want to give your C++ library a C interface. This is really common practice. You can do this by simply declaring functions as 'extern "C"'. Here is a link with more information:
    http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html#faq-30.8
    I've personally worked on projects that do exactly what you want to do.

  • Driver for Labview for ATE-100 pressure calibrator from Ashcroft Inc

    Guys,
    I need a subVI to communicate a pressure calibrator model ATE-100 from
    Ashcroft (http://www.ashcroft.com/products.cfm?doc_id=348) with a
    Labview application. The equipment has been originally shipped with and
    old exe file supposed to do the job, nut I could not manage to make it
    run. So I was searching for a way to exchange data it reads with the
    Labview application I am writing. It seems to be standard RS-232
    protocol.
    Can anyone help or give me some hints?
    Thnaks a lot,
    Pixinguinha

    The NI Instrument Driver Network doesn't have an instrument driver for this unit, so it looks like you're going to have to write your own drivers. You will, of course, need the programming manual from the manufacturer. This isn't all that difficult as there are tons of examples. You can just pull down, say, an instrument driver for a multimeter with a serial interface to see how it's done. To just try out serial communication you can use the "Basic Serial Write and Read" available in the LabVIEW examples. From the LabVIEW menu select Help->Find Examples. Change to the "Search" tab and enter "serial" in the search box. You'll get several examples.

  • Is there an existing balance and vibration monitor program for LabView for rotating machinery?

    I want to test generators for ballance and vibration, and shaft critical frequency. The data is to be collected automatically and reports generated preferably with LabView. Can I buy a written program as a starting point? I know of the Sound and Vibration Toolkit, and am willing to buy it, but still prefer to start with a verified package. Currently we are using a Bently-Nevada standalone system that is limited in its capability. We are installing a new data collection system so have a lot of flexability.

    Good Morning,
    Yes, we can put together a written program for collecting balance and vibration data for generators. There is a new tool to be announced April 30th, that goes beyond the sound and vibration toolset for machinery monitoring. We can use LabVIEW and our Dynamic Signal Acquisition hardware to capture accelerometer data, encoder/keyphasor data, and other rotational parameters. We can provide an off-line analysis set of software as well, or report the data to any existing Computer Machine Maintenance Software (CMMS) you need us to work with.
    I'd be happy to discuss this with you further.
    Sincerely,
    Preston Johnson
    Business Development Manager
    Industrial Applications
    National Instruments
    512-683-5444
    [email protected]
    Preston Johnson
    Principal Sales Engineer
    Condition Monitoring Systems
    Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
    National Instruments
    [email protected]
    www.ni.com/mcm
    www.ni.com/soundandvibration
    www.ni.com/biganalogdata
    512-683-5444

  • Is there a Labview for Linux

    Dear friends,
    I just know that there is a Labview for Linux. I have a Labview for
    Window. I dont the Labview for Linux is free. Can anyone tell me how
    much it should be? Does it have an educational discount?
    Thanks
    Tony Cheng (EE Dept. of City University of Hong Kong)
    email :[email protected]

    There is a LabVIEW of Linux. The NI online catalogue has the pricing info
    etc and you can find it at: www.ni.com/catalog, for LabVIEW for Linux I was
    taken to this page:: http://sine.ni.com/apps/we/nioc.vp?pc=bymn〈=US&cid=1382&p_0=Linux&x=26&y=10
    Cheers,
    Kamran
    Cheng Lee Lung wrote:
    >Dear friends,>>I just know that there is a Labview for Linux. I have a Labview
    for>Window. I dont the Labview for Linux is free. Can anyone tell me how>much
    it should be? Does it have an educational discount?>Thanks>>Tony Cheng (EE
    Dept. of City University of Hong Kong)>email :[email protected]>>

  • Introductory tutorial videos for labview

    There are some introductory tutorial videos for labview for beginners at www.fafiles.com
    Enjoy!!!
    National Instruments LabVIEW beginner video tutorials available at www.fafiles.com. Get Wired Up!!!

    I like the idea (I haven't looked at the video themselves) and am going to add that link to my hey-beginner-go-read-some-tutorials-and-manuals-before-bothering-us-with-your-problems macro. You get 5 stars for that.
    If you want more people to see this, add the link to your signature as a hyperlink and start answering questions here. You may find out that you like it. For some fun, check out the BreakPoint.
    Try to take over the world!

  • Font substitution: Arial Unicode for Arial

    We use Arial font for headlines, but InDesign consistently (always) changes Arial into Arial Unicode when I place copy from WORD. It leaves Times New Roman alone, and also other forms of Arial, such as Arial Black are OK. Just Arial has the problem. How do I permanently get it to run Arial? Thanks in advance, Cliff Moore

    If you have a font manager (I'm guessing you don't), you can just turn fonts on and off. Without one, you have to remove fonts from Windows (Start>Control Panel>Fonts), but make sure you have a copy of the file before removing anything.
    However, the fact that it is Arial Greek may mean the problem is something else and not a simple case of two Arials being active at the same time. Do you get a missing font message in ID?

  • Font substitution for Times New Roman? Why is Adobe doing this?

    I'm using Adobe Acrobat Pro version 9.2 to read pdfs created by a number of different authors. I'm running Windows 7 64 bit OS. These are NOT pdfs I have created. Some of these pdfs display an incorrect font substitution for Times New Roman and I can't figure out why. In the File/Properties dialog the font property comes up as Times New Roman, True Type, ANSI encoding (Times New Roman has spaces between the words). This font is not embedded. Adobe Sans MM is the font that my Adobe 9.2 substitutes for it, even though I have a true type Times New Roman already installed in Windows.I have installed all updates for both Acrobat and for Windows. If I select the text touch up tool to look at the text, a box comes up saying that the original font is not available and a substitute font will be used. When I look at the drop down box for fonts in Adobe, I see among all of the various fonts available, TimesNewRoman without spaces, but no Times New Roman with spaces. Does this matter?
    When I go to my Windows Control Panel Fonts screen, I see a Times New Roman truetype font available (with spaces, the same as the font the document is requesting). It says OpenType Layout, Digitally Signed, TrueTyepe Outliers. I use it all the time.
    What is required to get Adobe 9 to display this font? It looks like the document is asking for the font I have available on the system and Adobe 9 Pro just isn't identifying it. These same pdfs display just fine on Adobe Acrobat Standard 7.0 on another Windows 7 64 bit OS machine. Is there a separate font library that Adobe has independent of the Windows font library and I simply don't have a complete set of fonts for my version? I don't have the option to have the authors recreate their documents. And they display just fine on an older version of Adobe on a different machine.
    UPDATE: Adobe 9 required more than one update. I did the 300 mb update and the problem described above was still there. I checked again just now for updates, and there was another one. This one, whatever it was, fixed the font substitution problem. So the moral of the story is... update, then update again, and keep doing it until there are no more. Adobe doesn't say "there are xx updates available." You just have to keep on asking for them until it says 'no'.

    The font Radioactive is the problem. It has an incorrect internal name that conflicts with Times New Roman. Delete Radioactive and ban it from any Mac you use.

  • LabView for Linux/Mac: integrate external UI controls

    Hello,
    for Windows, there's the posibillity to integrate (UI-)controls written in annother language using ActiveX or .NET. Is there an equivalent solution for Linux and Mac?
    I.e., can I use a GTK or Carbon/Cocoa based control in LabView on Linux or Mac? I know I can utilize external libraries, but this will not allow me to display any UI elements alongside LabView controls on the same Panel without putting considerable effort in subclassing the window, which is also not so easy on Mac.
    Thanks in Advance
    Alexander Hofmann

    Hi Alexander,
    there is no such functionality that allows you to integrate external UI controls under Linux or Mac.
    However you can call Frameworks or Shared Libraries under Linux and Mac in order to communicate with external applications.
    Alternatively you can go the other way round and create Shared Libraries of your LabVIEW application, that can be called within external applications.
    Below you can find some helpful links reagrding this topic:
    Creating a Framework on a Mac for Use in LabVIEW:
    http://digital.ni.com/public.nsf/allkb/A6A6371FE0EA333B86257015005E3400
    Integrating External Code with the Import Shared Library Wizard:
    http://www.ni.com/white-paper/2818/en/
    Best Regards
    Christian

  • In LabVIEW for Linux, cannot link to a shared library file (.so).

    Hello all,
    I'm having trouble using the Call Library Function Node within LabVIEW for Linux (using Ubuntu).  I can configure my Node correctly, and it sees the available function within it with all the proper parameters, but when I close the Call Library Function dialog box it does a quick search and asks me to Find the Shared Library Named "mySharedLibraryName."  If I select it again, it merely repeats this over and over until I cancel.  Has anyone seen this before or know what is causing this?  The .so file was compiled using gcc++ - is there anything specific that should have been included (does it need a header file)?  Could some missing file be causing this?
    Thanks,
    Jason

    The elf shared library format is a supported feature of all Linux distributions since about Linux 1.0 or earlier. So it is not really an issue that Ubuntu wouldn't support shared libraries as used by the LabVIEW Call Library Node. Since the Call Library Node seems to be able to see the exported functions during selection of the function it also doesn't seem to be a problem with proper export of the symbols.
    This leaves over some dependencies of the shared library on some other shared libraries including C runtime libraries. Was the shared library compiled on the system you try to use it? If not you may have an incompatibility of the C runtime library version used on the system that was used to compile the shared library and your Ubuntu system you try to load it.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Fonts in Reports 9i for RH Linux

    I deployed my forms/reports application on 9iAS for linux. I have generally used Ariel font in all of my reports.
    Those reports which have bold font of Ariel print the text a bit larger and therefore my text is not printed fully.
    Reports having Ariel Narrow font totally print a new different font. This may be due to absence of Ariel Narrow font in RH 7.3 Linux. How I can add this font?
    Kindly advise me the solution.
    Thanks
    Zulqarnain

    For going multi-platform it is easiest to stick to the logical fonts: Fonts named "Serif", "SansSerif", "Monospaced", "Dialog", and "DialogInput".
    These fonts are guaranteed to exist on any platform, although their implementations may be different. If you use others then you'll have to figure out how to deal with cross platform issues.
    Jeff

Maybe you are looking for