Is there any tool for examining txf-files?
OR
Can anybody tell the width of default (and other?) cel font characters in pixel?
maxim
Font character width?
-
- Developer
- Posts: 944
- Joined: 18.07.2002
- With us: 22 years 4 months
- Location: Lyon (France)
The tools available on Mark Kilgard's site don't work with Celestia's txf files. But I'm working on getting a working version to add a preview to the font generator.
Christophe
-
- Developer
- Posts: 944
- Joined: 18.07.2002
- With us: 22 years 4 months
- Location: Lyon (France)
Christophe wrote:A txf file preview is now available here.
Cool, seems to work for small TXF's. Jumbo (2k+) TXF's containing lots of CJK characters
seem to break it. I suppose though that this is just further proof that Celestia itself
needs a more scalable font system that can handle 2k+ CJK fonts. Something that
doesn't require loading one giant font texture at once. I've been thinking along the lines of
Celestia storing the texture as little strips, might be a little slower to render but should
be much more scalable.
-
- Developer
- Posts: 944
- Joined: 18.07.2002
- With us: 22 years 4 months
- Location: Lyon (France)
Well, I wasn't particularly cautious with the memory handling, so that may explain why the preview doesn't work with large textures.
The solution to rendering CJK fonts might be to use a different library like FTGL which can render TTF fonts directly. But I don't know how it performs with fonts with a large number of glyphs.
The solution to rendering CJK fonts might be to use a different library like FTGL which can render TTF fonts directly. But I don't know how it performs with fonts with a large number of glyphs.
Christophe
-
- Developer
- Posts: 944
- Joined: 18.07.2002
- With us: 22 years 4 months
- Location: Lyon (France)
Yes, the font geometry information is stored in the txf along the texture.
Have a look at the src/celtxf/texturefont.cpp source file. TextureFont::load should make it clear how to retreive that information.
Have a look at the src/celtxf/texturefont.cpp source file. TextureFont::load should make it clear how to retreive that information.
Christophe
-
- Developer
- Posts: 944
- Joined: 18.07.2002
- With us: 22 years 4 months
- Location: Lyon (France)
-
- Developer
- Posts: 944
- Joined: 18.07.2002
- With us: 22 years 4 months
- Location: Lyon (France)
-
- Developer
- Posts: 944
- Joined: 18.07.2002
- With us: 22 years 4 months
- Location: Lyon (France)