FontRasterizer* fr = new FontRasterizer();
fr->ReadFontFile("arial.ttf");
fr->AddGlyphRange(0, 128);
fr->AddGlyphRange(0x410, 0x44f);
fr->SetSize(64);
fr->Rasterize();
//After that you still can AddGlyphs() and Rasterize() again. Updated atlas will be composed.
Bitmap bmp = fr->GetBitmapData();
GlyphInfo gi = fr->GetGlyph(32);
delete fr;
-
Notifications
You must be signed in to change notification settings - Fork 0
MegaMilkX/GlyphAtlasComposer
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
TTF/OTF font rasterizer. Based on freetype2
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published