diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-06-18 11:45:09 -0700 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-06-22 13:57:26 -0400 |
commit | 7f6de1ed5dd1bf1e0d899f2b17819e82f5c3c32e (patch) | |
tree | b7fab04c3bd6c67c07055513f2443f68ee43a32b | |
parent | 0f90ddfbacb8b76af01dd3064086e2ad11a16d29 (diff) | |
download | pango-7f6de1ed5dd1bf1e0d899f2b17819e82f5c3c32e.tar.gz |
Make test-font use our test fonts
-rw-r--r-- | tests/meson.build | 2 | ||||
-rw-r--r-- | tests/test-font.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/meson.build b/tests/meson.build index 735abc22..f6c40b37 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -32,7 +32,7 @@ if cairo_dep.found() [ 'test-ellipsize', [ 'test-ellipsize.c' ] ], [ 'markup-parse', [ 'markup-parse.c' , 'test-common.c' ] ], [ 'test-itemize', [ 'test-itemize.c', 'test-common.c' ] ], - [ 'test-font', [ 'test-font.c' ] ], + [ 'test-font', [ 'test-font.c', 'test-common.c' ] ], [ 'testattributes', [ 'testattributes.c', 'test-common.c' ] ], [ 'cxx-test', [ 'cxx-test.cpp' ] ], [ 'test-harfbuzz', [ 'test-harfbuzz.c' ] ], diff --git a/tests/test-font.c b/tests/test-font.c index 7c3b06db..c457fac3 100644 --- a/tests/test-font.c +++ b/tests/test-font.c @@ -28,6 +28,8 @@ #include <pango/pango-item-private.h> #include <pango/pango-font-private.h> +#include "test-common.h" + static PangoContext *context; static void @@ -401,7 +403,7 @@ test_roundtrip_emoji (void) context = pango_context_new (); /* This is how pango_itemize creates the emoji font desc */ - desc = pango_font_description_from_string ("Cantarell 11"); + desc = pango_font_description_from_string ("DejaVu Sans Book 11"); pango_font_description_set_family_static (desc, "emoji"); font = pango_context_load_font (context, desc); @@ -541,6 +543,8 @@ main (int argc, char *argv[]) g_test_init (&argc, &argv, NULL); + install_fonts (); + context = pango_context_new (); g_test_add_func ("/pango/font/metrics", test_metrics); |