freetype: move example fonts to upstream repo

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-05-22 23:56:46 -07:00 committed by Stephen Gutekanst
parent 240278fb4d
commit a65859d04a
2 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
const freetype = @import("freetype");
const firasnas_font_path = "test/assets/FiraSans-Regular.ttf";
const firasnas_font_data = @embedFile("assets/FiraSans-Regular.ttf");
const firasnas_font_path = "upstream/assets/FiraSans-Regular.ttf";
const firasnas_font_data = @embedFile("../upstream/assets/FiraSans-Regular.ttf");
test "new face from file" {
const lib = try freetype.Library.init();
@ -42,13 +42,13 @@ test "load glyph" {
test "attach file" {
const lib = try freetype.Library.init();
const face = try lib.newFace("test/assets/DejaVuSans.pfb", 0);
try face.attachFile("test/assets/DejaVuSans.pfm");
const face = try lib.newFace("upstream/assets/DejaVuSans.pfb", 0);
try face.attachFile("upstream/assets/DejaVuSans.pfm");
}
test "attach from memory" {
const lib = try freetype.Library.init();
const face = try lib.newFace("test/assets/DejaVuSans.pfb", 0);
const file = @embedFile("assets/DejaVuSans.pfm");
const face = try lib.newFace("upstream/assets/DejaVuSans.pfb", 0);
const file = @embedFile("../upstream/assets/DejaVuSans.pfm");
try face.attachMemory(file);
}