Menu
  • HOME
  • TAGS

How can I use True Type Collection (.ttc) in JavaFX?

css,javafx,truetype,richtextfx

Copy-paste solution from comments: You have to load font at least once in your code before showing it. Event if you use it in css. Just put load line somewhere in the beginning and it should work. Font.loadFont(getClass().getResourceAsStream("/tsentsiu-sans-mono-regular.ttc")‌​, 20); ...

a negative unsigned int?

unsigned,truetype

The definition and use of idDelta on that page is not consistent. In the struct subheader it is defined as an int16, while a little earlier the same subheader is listed as UInt16*4. It's probably a bug in the spec. If you look at actual implementations, like this one from...

From data to OpenGL 2D Texture

c,opengl,fonts,true-type-fonts,truetype

Normally each row will be a multiple the width and the bytes per pixel. But some 2D rasterization software will require additional dead space afterwards (for alignment purposes). The jump from row to row is known as the stride and can be greater than the width. From the images you...

Getting the Glyph Name from a TTF or OTF font file

c#,.net,fonts,truetype

In TrueType-based fonts (.TTF files), you can try parsing the 'post' table. It's fairly easy to figure out. But, only format 2.0 explicitly stores glyph names. If the post table is format 3.0, there are no names stored (there are a couple of other formats defined, but fonts using them...

Performance: How are font files usually interacted with?

java,fonts,true-type-fonts,glyph,truetype

Pretty much all systems load glyphs on demand. Pretty much all of them also keep used font files mapped into memory. In Windows, as far as I understand, at least with GDI, some core of font handling is actually implemented in the kernel. That allows sharing the font memory usage...