freetype: move example fonts to upstream repo
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
240278fb4d
commit
a65859d04a
2 changed files with 7 additions and 7 deletions
|
|
@ -30,7 +30,7 @@ pub fn main() !void {
|
|||
const lib = try freetype.Library.init();
|
||||
defer lib.deinit();
|
||||
|
||||
const face = try lib.newFace("test/assets/FiraSans-Regular.ttf", 0);
|
||||
const face = try lib.newFace("upstream/assets/FiraSans-Regular.ttf", 0);
|
||||
defer face.deinit();
|
||||
|
||||
try face.setCharSize(40 * 64, 0, 50, 0);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue