PFR fonts and fontindex XML file
Hello,
I'm trying to test new fonts on my ADB stb using the org.dvb.ui.FontFactory class.
To do that, I've created the proper dvb.fontindex XML file and loaded the .pfr file, both to the the home directory of my application, but the FontNotAvailableException appears.
I think that the fontindex is right and the method createFont() actually finds the .pfr file, so my suspicions are that I "bind" somethig bad.
My question is, the name element in the fontindex, can be arbitrary or it has to be a specific one which matches something coded inside the .pfr file?
In that case, how can I figure out that specific name? Could someone recommend me a program able to open and show properties of the PFR fonts files?
Thank you everyone.
Best Regards, 羖ex.
[800 byte] By [
ferreirosa] at [2007-11-27 4:25:31]

# 1
Hi,
I'll answer your question with another question: How are you constructing your fonts?
I ask because there are two FontFactory constructors; one with no arguments and one that takes a URL for the location of the font file. I don't know why but, I've never been able to build a font using the second constructor. The no argument constructor on the other hand works perfectly :-)
Roger
# 2
Thank you Roger (again) for your replies.
The thing is that I've already solved this problem. As you suggest, I used the no arguments constructor and my code was right, but my mistake was that I didn't know the proper name of the font (something that is coded in the pfr file).
Once I got a nice pfr font tool to make my pfr files, it has worked perfectly.
Regards.
羖ex.
# 3
Hi 羖ex,I'm curious, where did you get the PFR tool from? I remember seeing a trial version of such a tool ages ago, but when I last looked the company that produced it had removed it from their web site :-(Roger
# 4
Hi Roger,actually, the tool I talk about, probably is the same you talk about :)I downloaded from the p2p emule net.If you are really interested on it and you are not able to get it, contact me (mail)羖ex.
# 5
Hi 羖ex,
Thanks for the info. The problem I found with that tool was that it is a demo version which limited to 10 fonts and 30 days (I think). A new copy of it wouldn't help, but thanks for the offer.
I was hoping that somebody else had put together another tool that was a bit more user friendly, after all the specification for the font format is freely available. It's just complex. :-(
Thanks again,
Roger
# 6
Hi Roger,in fact, I think I can help you with that tool. I insist, you should contact with me (my email address is visible).Regards, 羖ex.