summaryrefslogtreecommitdiff
path: root/test/user-font.c
Commit message (Collapse)AuthorAgeFilesLines
* Update user font tests to test foreground colorsAdrian Johnson2023-01-261-21/+28
|
* Fix the scaled_glyph_init color glyph logicAdrian Johnson2022-04-251-13/+58
| | | | | | and split _cairo_user_scaled_glyph_init() into multiple functions. Update user-font test to test changing foreground text color.
* test: fix include order for AIX, bug#89354Michael Haubenwallner2015-03-051-2/+2
|
* [test] Don't embed preprocessor directives inside macrosJeff Muizelaar2009-02-101-5/+5
| | | | | MSVC can't handle this. GCC will warn with -pedantic, but I'm not sure we want to enable that.
* [test] Build test suite into single binary.Chris Wilson2008-10-311-18/+10
| | | | | | | | | 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] Exercise glyph 0Behdad Esfahbod2008-10-231-4/+3
| | | | | Previously there was a bug in cairo and/or poppler causing glyph 0 of user fonts to not show up. This is fixed now, so we exercise glyph 0.
* [test/user-font[-proxy]] Check for error from set_user_data().Chris Wilson2008-10-181-5/+19
| | | | Check in case we fail to attach our user_data.
* [test/user-font] Correct the lifetime of the user font face.Chris Wilson2008-08-181-45/+46
| | | | | | | By keeping a static reference to the user font face, it is erroneously kept alive during a call to cairo_debug_reset_static_data(). (A violation of the caller's contract to ensure that no active reference to a cairo object is held by the caller.)
* [test] Preparatory work for running under memfault.Chris Wilson2008-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | In order to run under memfault, the framework is first extended to handle running concurrent tests - i.e. multi-threading. (Not that this is a requirement for memfault, instead it shares a common goal of storing per-test data). To that end all the global data is moved into a per-test context and the targets are adjusted to avoid overlap on shared, global resources (such as output files and frame buffers). In order to preserve the simplicity of the standard draw routines, the context is not passed explicitly as a parameter to the routines, but is instead attached to the cairo_t via the user_data. For the masochist, to enable the tests to be run across multiple threads simply set the environment variable CAIRO_TEST_NUM_THREADS to the desired number. In the long run, we can hope the need for memfault (runtime testing of error paths) will be mitigated by static analysis. A promising candidate for this task would appear to be http://hal.cs.berkeley.edu/cil/.
* [test/user-font] Fix commentsBehdad Esfahbod2008-08-081-2/+2
|
* [test/user-font] Document glyph-not-found situationBehdad Esfahbod2008-08-081-3/+5
|
* [user-font] Add a cairo_t argument to cairo_user_scaled_font_init_func_tBehdad Esfahbod2008-08-081-0/+1
| | | | | | | | | | The init func does not actually need to draw anything, but having a cairo_t similar to that passed to render_glyph is handy for computing font extents. This is because cairo makes doing some things really hard (if not impossible) without a cairo_t. The user-font-proxy test case is a great example of how the added cairo_t makes life much easier.
* [test/user-font] Document that Poppler is buggy with glyph 0Behdad Esfahbod2008-08-061-1/+1
|
* [test/user-font.c] Fix compiler warningsBehdad Esfahbod2008-05-281-2/+2
|
* [test/user-font] Use user_data to access glyphs arrayBehdad Esfahbod2008-05-271-24/+43
| | | | | | This way the same callback code can be used to render multiple different glyph arrays. Change done for education purposes, otherwise doesn't make any difference in the test.
* [user-font] Use opaque colors such that PS backend gets testedBehdad Esfahbod2008-05-151-4/+4
| | | | Also update ref images. All backends pass now.
* [test/user-font] Another minor tweak to the fontBehdad Esfahbod2008-05-151-1/+1
|
* [test/user-font] Add some more glyphsBehdad Esfahbod2008-05-131-18/+21
| | | | The glyph for 'z' now reveals a bug in PDF type1 code.
* [cairo-user-font] Implement user fontsBehdad Esfahbod2008-05-101-0/+236