summaryrefslogtreecommitdiff
path: root/test/user-font-rescale.c
Commit message (Collapse)AuthorAgeFilesLines
* On MacOSX, the sed utility errors out when parsing non-UTF8Bryce Harrington2015-03-101-2/+2
| | | | | | | files. Because of this, the generated cairo-test-constructor only contained a few tests and the test suite was thus incomplete. Original patch by Andrea Canciani <ranma42@gmail.com>
* test: make test font family a defineAndrea Canciani2010-06-121-3/+3
| | | | | | In order to make it easier to change the test font family, add it as a define in the global header and always reference the macro in the tests.
* test/user-font-rescale: Use after free and check for memfault.Chris Wilson2010-05-041-5/+11
|
* [test] Fix use of uninitialized widths.Chris Wilson2009-07-241-8/+5
| | | | | | | user-font-rescale copied unitialized values from the widths array into the desired array. Although these corresponded to unused glyphs and so were never used during the rendering, the values may have been illegal causing FPE as they were copied.
* [test] Add cairo_test_NaN and use it in place of strtodJeff Muizelaar2009-02-111-1/+1
| | | | | strtod("NaN") returns 0.0 with the MSVC runtime so we need to generate NaN some other way.
* [test] Fix reference handling in user-font-rescaleChris Wilson2008-12-231-1/+3
| | | | | | | user-font-rescale stored the current font on the context in order to create a rescaling proxy font. As we failed to take a reference to the font, it caught us by surprise when the font disappeared as we modified the context before creating our proxy. Ho hum.
* [test] Build test suite into single binary.Chris Wilson2008-10-311-14/+6
| | | | | | | | | Avoid calling libtool to link every single test case, by building just one binary from all the sources. This binary is then given the task of choosing tests to run (based on user selection and individual test requirement), forking each test into its own process and accumulating the results.
* [test/user-font-rescale] Check and propagate errors.Chris Wilson2008-10-191-23/+40
| | | | | We need to check the error status on set_user_data() to be sure that the data has been set and error otherwise.
* [user-font-rescale] Do proper ref-counting of substitute fontJeff Muizelaar2008-09-251-2/+8
| | | | | | The problem showed up on OS X because the freetype backend reuses font_face_t's which kept the reference count high enough for long enough to avoid the problem.
* Update tests to new cairo_text_cluster_flags_t APIBehdad Esfahbod2008-09-181-4/+2
|
* Change user-font-rescale test to use opaque colorsAdrian Johnson2008-09-161-3/+3
| | | | | | The combination of the initial cairo_paint() and the translucent text colors were causing image fallbacks that prevented the PS type 3 font embedding from being tested.
* [test/user-font-rescale] TidyChris Wilson2008-09-161-76/+98
| | | | | Behdad warned that the static UNICODE_TO_GLYPH converter was not portable, and needed to be replaced. And do a quick coding-style blitz.
* [test/user-font-rescale] Fixup use of NANChris Wilson2008-09-161-3/+2
| | | | Kill the use of the C99 feature, and replace with strtod("NaN").
* [test] Add a test case for drawing glyphs with different metrics.Jeff Muizelaar2008-09-161-0/+329
The ability to draw glyphs with different metrics is useful when doing font substitution with fixed layout like in pdf and I eventually plan on adding code to poppler to do something similar.