| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
The faceid will be used in future commits
to improve font -> description -> font roundtrip
accuracy.
Update affected tests.
Minimal test included.
|
|
|
|
|
|
|
|
| |
Add pango_font_face_supports_language and pango_font_face_get_languages.
There is no particular reason to tie language information to fonts
instead of faces. This will be useful for the font chooser.
Update the fontconfig implementation for these changes.
|
|
|
|
|
|
|
|
|
|
| |
These are really properties of the individual
faces, not the family.
The default implementations of these functions
simply return the corresponding family value.
Add some tests for the new api.
|
|
|
|
|
|
|
|
| |
When setting variations to "", font descriptions
would add an ugly useless " @" at the end of their
serialization. Avoid that.
Test included.
|
|
|
|
|
|
| |
Test some more tests for roundtripping
casing variants from font description to
font and back.
|
|
|
|
|
|
|
| |
Add a test that verifies that PANGO_VARIANT_SMALL_CAPS
survives a roundtrip from font description to font and
back, and that it shows up in the font as smcp=1 in
the OpenType features.
|
|
|
|
|
|
| |
We were skipping the test that would have found
the brokenness in the previous fix. Lets see if
we can get the test working on MacOs.
|
| |
|
|
|
|
|
| |
The return value of setlocale is only good until
the next call. Also, consistently use en_US.UTF-8.
|
| |
|
| |
|
|
|
|
|
|
|
| |
It turns out that we can still see non-scalable fonts
which report a list of sizes. Take that into account.
Fixes: #570
|
|
|
|
| |
Exercise the list model apis, for coverage.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
pango_cairo_font_map_get_default is transfer none.
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This test exercises the new font enumeration apis.
|
|
|
|
|
| |
We want to make sure that the ink rectangles
we return have positive size.
|
| |
|
|
|
|
|
| |
We don't care about the particular font here, we just
want to list font metrics of an existing font.
|
|
|
|
|
| |
This is to confirm whether fonts report a nonzero
height on Windows.
|
|
|
|
| |
This adds some tests around the new variations field.
|
|
This just a small beginning, much more is needed here.
|