How to recognise the Barcode font?

Hi, AllI know that using the method "createGlyphVector()" to display the Barcode font, which method is different from display normal font(e.g. Serif).But how can i recognise these two type font using code?
[226 byte] By [Pointera] at [2007-10-3 11:12:33]
# 1

Well, I don't have any experience with the Barcode font, you could try:

font.canDisplay('a')

That returns true if the font has a glyph for that character; false otherwise. But since I'm not familiar with Barcodes, you would have to supply a character that Barcodes can't read but most other Fonts can. Almost any displayable character will, so long as the Barcode has no such equivalent.

Hope that helps

aegwynn42a at 2007-7-15 13:36:07 > top of Java-index,Desktop,Core GUI APIs...