Barcode font does not work

Posted on 2011-05-11
Last Modified: 2012-05-11
I have a small program that puts some text on a tiff image. It converts a string of numbers into a barcode using the "3 of 9 Barcode" font. It has been working fine. Now I need to change the barcode font from "3 of 9 Barcode" to "IDA Code39 HR SHORT".  But for some reason it does not work. I tried a few different fonts listed in Windows\Fonts.  Some work and some don't.  The program does not produce an error message when it does not use the specified font. It just uses a different font that looks like Arial. Any idea why is that?  I can use "IDA Code39 HR SHORT" in other programs such as Word.

Thank you in advance for your help.
Question by:occr
    LVL 82

    Expert Comment

    by:Dave Baldwin
    Any time your system does not have a specific font, it will substitute some other font.  It's not surprising that your program does no produce an error message because it doesn't know that one was created.  Have you installed a "IDA Code39 HR SHORT" font?
    LVL 6

    Assisted Solution

    You may want to install a IDAutomationC39HS font--this is the Code 39 Font that displays human readable and a short or small barcode height.


    Author Comment

    The "IDA Code39 HR SHORT" font is installed and I can use it in other applications.  I can also display it by double-clicking it in the the Windows/Font folder.
    LVL 82

    Accepted Solution

    If that's the case, then I'd have to say that your small program is the thing that doesn't understand that font file.  Can you tell us what program it is?  In addition to regular photo programs like Photoshop, I can use Irfanview (which is free ) to place text into images.

    Author Closing Comment

    The problem is with the function I am using to place the text string (barcode) on the image. It's supposed to support all Windows fonts but if you look deeper in the documentation it only supports certain barcode type fonts and the one i want to use is not one of them.
    LVL 82

    Expert Comment

    by:Dave Baldwin
    Sorry to hear that but thanks for the points.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    This is an explanation of a simple data model to help parse a JSON feed
    This is about my first experience with programming Arduino.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now