Add VarelaRound;

This commit is contained in:
bjorn 2018-12-11 23:49:48 -08:00 committed by Bjorn Swenson
parent 68a69eec2b
commit 099cf4cb22
3 changed files with 3715 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#include "data/rasterizer.h"
#include "resources/Cabin.ttf.h"
#include "resources/VarelaRound.ttf.h"
#include "util.h"
#include "lib/stb/stb_truetype.h"
#include "msdfgen-c.h"
@ -10,7 +10,7 @@ Rasterizer* lovrRasterizerCreate(Blob* blob, int size) {
if (!rasterizer) return NULL;
stbtt_fontinfo* font = &rasterizer->font;
unsigned char* data = blob ? blob->data : Cabin_ttf;
unsigned char* data = blob ? blob->data : VarelaRound_ttf;
if (!stbtt_InitFont(font, data, stbtt_GetFontOffsetForIndex(data, 0))) {
lovrThrow("Problem loading font");
}

Binary file not shown.

File diff suppressed because it is too large Load Diff