summaryrefslogtreecommitdiff
path: root/tests/test-font.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: Locale handling fixesMatthias Clasen2021-07-211-1/+0
| | | | | The return value of setlocale is only good until the next call. Also, consistently use en_US.UTF-8.
* tests: Add more font testsMatthias Clasen2021-07-061-8/+90
|
* tests: Free the sizes array, if it was allocatedJan Alexander Steffens (heftig)2021-07-021-0/+1
|
* tests: Be more careful about font formatsbitmap-font-testsMatthias Clasen2021-06-301-3/+1
| | | | | | | It turns out that we can still see non-scalable fonts which report a list of sizes. Take that into account. Fixes: #570
* Add some more font api testsMatthias Clasen2021-06-281-0/+71
| | | | Exercise the list model apis, for coverage.
* tests: Add tests for pango_font_describefix-font-roundtripMatthias Clasen2021-01-241-1/+70
| | | | | | | | | Test that round-tripping through pango_font_describe works. This is currently broken for scalable bitmap fonts, such as color Emoji fonts. We skip the test on OS X where we are most likely missing the fonts.
* tests: Fix an errant unrefMatthias Clasen2021-01-241-1/+0
| | | | pango_cairo_font_map_get_default is transfer none.
* tests: Don't assert too muchfont-face-fixesMatthias Clasen2021-01-231-1/+1
| | | | | | | | | | We can't guarantee uniqueness of face names, so we don't know that getting a face by name will return the same face we got the name from (which is true if faces are unique). So, just assert that we get a face with the same name. Fixes: #494
* Fix leaks found by asanSzunti2021-01-161-1/+4
|
* tests: Use the appropriate GTest APIEmmanuele Bassi2020-04-141-19/+15
| | | | | | | | Do not use homegrown assertion and failure macros, when GTest has perfectly functional API to deal with all the cases Pango covers. Using GTest also allows us to rely on appropriate formatting for results and logging.
* Add a test for new font apiMatthias Clasen2019-10-311-0/+62
| | | | This test exercises the new font enumeration apis.
* Add a test for extentsMatthias Clasen2019-08-121-0/+30
| | | | | We want to make sure that the ink rectangles we return have positive size.
* Fix the buildMatthias Clasen2019-07-161-1/+1
|
* ci: Use an existing fontMatthias Clasen2019-07-161-2/+7
| | | | | We don't care about the particular font here, we just want to list font metrics of an existing font.
* Add a test that prints out font metricsMatthias Clasen2019-07-161-1/+44
| | | | | This is to confirm whether fonts report a nonzero height on Windows.
* Add some font description testsMatthias Clasen2018-01-031-0/+38
| | | | This adds some tests around the new variations field.
* Add some tests for PangoFontDescriptionMatthias Clasen2014-09-081-0/+92
This just a small beginning, much more is needed here.