Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > WingDings, ttf and glyph

Reply
Thread Tools

WingDings, ttf and glyph

 
 
bigbinc
Guest
Posts: n/a
 
      02-25-2004
Is there any reason why the wingding glyph cant be loaded runtime.


File _file = new File("fonts/WINGDNG3.TTF");
FileInputStream fis = new FileInputStream(_file);

font = java.awt.Font.createFont(java.awt.Font.TRUETYPE_FO NT, fis);

System.out.println(font.getName());
System.out.println("" + font.isBold());
System.out.println("" + font.isPlain());

char nb = (char)0;
for (int z = 0; z < 255; z++) {

System.out.println(nb + " " + font.canDisplay(nb));
nb++;

} // end of


I get false all the way down...
 
Reply With Quote
 
 
 
 
Berlin Brown
Guest
Posts: n/a
 
      02-25-2004
bigbinc wrote:
> Is there any reason why the wingding glyph cant be loaded runtime.
>
>
> File _file = new File("fonts/WINGDNG3.TTF");
> FileInputStream fis = new FileInputStream(_file);
>
> font = java.awt.Font.createFont(java.awt.Font.TRUETYPE_FO NT, fis);
>
> System.out.println(font.getName());
> System.out.println("" + font.isBold());
> System.out.println("" + font.isPlain());
>
> char nb = (char)0;
> for (int z = 0; z < 255; z++) {
>
> System.out.println(nb + " " + font.canDisplay(nb));
> nb++;
>
> } // end of
>
>
> I get false all the way down...


figured it out, it is not a standard ansi charset character, you have to
use glyphvector.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross platform TTF font render from Python [was: Load TTF from pycairounder Windows] Laszlo Nagy Python 1 09-19-2009 02:43 AM
interpreting glyph outlines from ttfquery? swiftset Python 2 03-22-2007 03:56 PM
Obtaining glyph width in Python Charlie Python 1 07-04-2005 01:33 PM
Font Creation from TTF file in JDK 1.3 Sameer Java 4 03-12-2005 10:01 AM
Font Conversion Help : BDF --> TTF AJ Java 1 04-29-2004 05:11 PM



Advertisments