summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate pango_coverage_ref/unrefdeprecate-coverage-refMatthias Clasen2022-01-102-3/+7
| | | | These are just wrappers of g_object_ref/unref.
* Drop uses of pango_coverage_ref/unrefMatthias Clasen2022-01-109-18/+18
| | | | Just use g_object_ref/unref.
* Add version macros for 1.52Matthias Clasen2022-01-101-0/+24
|
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2022-01-103-1/+15
|\ | | | | | | | | Matthiasc/for main See merge request GNOME/pango!576
| * fonts: Fix get_face default implMatthias Clasen2022-01-101-1/+1
| |
| * Add a default implementation for list_facesMatthias Clasen2022-01-101-0/+13
| |
| * Add a bold sans to the test font setupMatthias Clasen2022-01-102-0/+1
|/
* Merge branch 'attrlist-splice' into 'main'Matthias Clasen2022-01-102-3/+35
|\ | | | | | | | | | | | | Clarify pango_attr_list_splice docs Closes #653 See merge request GNOME/pango!574
| * Reinstate previous behavior or pango_attr_list_spliceattrlist-spliceMatthias Clasen2022-01-072-3/+35
| | | | | | | | | | | | | | | | | | | | If gap is zero, don't limit the inserted attributes; that does not make sense. Spell out the different use cases in the docs. Testcase included. Fixes: #653
| * Clarify pango_attr_list_splice docsMatthias Clasen2022-01-071-1/+1
| | | | | | | | | | Make it explicit that the spliced-in attributes are limited to the the 'gap'.
* | Merge branch 'bilelmoussaoui/gi' into 'main'Matthias Clasen2022-01-102-14/+8
|\ \ | |/ |/| | | | | g-i: add since annotations to enum members See merge request GNOME/pango!575
| * g-i: add since annotations to enum membersbilelmoussaoui/giBilal Elmoussaoui2022-01-082-14/+8
|/
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2022-01-071-1/+4
|\ | | | | | | | | | | | | Avoid an uninitialized variable warning Closes #650 See merge request GNOME/pango!573
| * Avoid an uninitialized variable warningMatthias Clasen2022-01-061-1/+4
|/ | | | Fixes: #650
* Merge branch 'wip/smcv/json-unsigned-char' into 'main'Matthias Clasen2022-01-051-1/+1
|\ | | | | | | | | | | | | serializer: Serialize non-ASCII correctly if char is unsigned Closes #652 See merge request GNOME/pango!572
| * serializer: Serialize non-ASCII correctly if char is unsignedSimon McVittie2022-01-041-1/+1
|/ | | | | | | | | | | | | If char is unsigned, the first byte of a non-trivial UTF-8 sequence will be 0x80 or higher, instead of being negative. In this case we need to process it as UTF-8, instead of printing only the first byte and then skipping to the next UTF-8 character. char is usually signed on x86 and some other architectures, but not on the ARM or PowerPC families, among others. Resolves: https://gitlab.gnome.org/GNOME/pango/-/issues/652 Signed-off-by: Simon McVittie <smcv@debian.org>
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2022-01-031-1/+4
|\ | | | | | | | | layout: Make sloped carets work better See merge request GNOME/pango!571
| * layout: Make sloped carets work betterMatthias Clasen2022-01-031-1/+4
|/ | | | | | | | When the font matrix has uneven scales, we need to factor that into the slope that we get from the font metrics. Tested with a condensed italic Cantarell.
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2022-01-023-0/+137
|\ | | | | | | | | Add a test for letterspacing See merge request GNOME/pango!570
| * Turn off hlig too when letterspacingMatthias Clasen2022-01-021-0/+1
| | | | | | | | Just for completeness.
| * Add a test for letterspacingMatthias Clasen2022-01-022-0/+136
| | | | | | | | | | This tests that we turn off ligatures when letterspacing is enabled.
* | Merge branch 'synthetic-slant' into 'main'Matthias Clasen2022-01-024-2/+72
|\ \ | |/ |/| | | | | Pass synthetic slant to harfbuzz See merge request GNOME/pango!474
| * Pass synthetic slant to harfbuzzsynthetic-slantMatthias Clasen2022-01-021-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | When our font matrix includes a slant, pass that information to HarfBuzz, so it can adjust its mark positioning, metrics like caret slope, etc. This commit corrects the code that pulls the font matrix out of fontconfig to properly take the flipped y axis between fontconfig and pango into account. Requires new api in HarfBuzz > 3.2
| * Add pango_matrix_get_slant_ratioMatthias Clasen2022-01-023-0/+62
|/ | | | | Add API to extract the slant ratio from a PangoMatrix. Tests included.
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2022-01-021-2/+2
|\ | | | | | | | | test-ellipsize: Tweak See merge request GNOME/pango!569
| * test-ellipsize: TweakMatthias Clasen2022-01-011-2/+2
|/ | | | | Best to compare precise sizes and take rounding out of the equation.
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2022-01-022-3/+14
|\ | | | | | | | | fontmap: Improve docs slightly See merge request GNOME/pango!568
| * font: Documentation additions and clarificationsMatthias Clasen2022-01-011-3/+9
| | | | | | | | | | Face names are not actually guaranteed to be unique, so don't say that.
| * fontmap: Improve docs slightlyMatthias Clasen2022-01-011-0/+5
|/ | | | Mention GListModel.
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2022-01-011-1/+1
|\ | | | | | | | | Cosmetics See merge request GNOME/pango!567
| * CosmeticsMatthias Clasen2022-01-011-1/+1
|/
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2021-12-255-11/+40
|\ | | | | | | | | | | | | tracing: Fix the defines Closes #648 See merge request GNOME/pango!565
| * Add fonts to installed testsMatthias Clasen2021-12-251-0/+14
| | | | | | | | Fixes: #648
| * itemize: Try harder to avoid NULL fontsMatthias Clasen2021-12-251-3/+5
| | | | | | | | | | Always fall back to the base font if the fontset has no coverage.
| * tracing: Fix the definesMatthias Clasen2021-12-252-8/+20
| | | | | | | | | | | | | | | | We want to define pango_trace_mark to nothing. This reveals that we've never compiled these calls out before, and there are some warnings to be fixed in that case.
| * Install pango-fontset-simple.hMatthias Clasen2021-12-251-0/+1
|/
* Merge branch 'fontset-cosmetics' into 'main'Matthias Clasen2021-12-2514-309/+330
|\ | | | | | | | | Split off PangoFontsetSimple See merge request GNOME/pango!564
| * fontsetsimple: Make privately accessiblefontset-cosmeticsMatthias Clasen2021-12-242-14/+45
| | | | | | | | This will be used in the future
| * Drop pango-fontset-private.hMatthias Clasen2021-12-249-43/+8
| | | | | | | | This was just an empty header.
| * fontsetsimple: Simplify coverage handlingMatthias Clasen2021-12-231-55/+17
| | | | | | | | | | | | This functionality is basically unused. Lets not keep an array of coverages around for it.
| * Split off PangoFontsetSimpleMatthias Clasen2021-12-236-291/+354
|/ | | | Put PangoFontsetSimple into its own files.
* Merge branch 'smaller-space' into 'main'Matthias Clasen2021-12-233-8/+8
|\ | | | | | | | | Make missing space smaller See merge request GNOME/pango!563
| * Make missing space smallersmaller-spaceMatthias Clasen2021-12-223-8/+8
|/ | | | | | | The Microsoft paper I was citing actually recommends 1/4 em for ASCII space. Make it so... Update affected tests.
* 1.50.31.50.3Matthias Clasen2021-12-212-4/+4
|
* Merge branch 'better-space-size' into 'main'Matthias Clasen2021-12-227-47/+47
|\ | | | | | | | | | | | | Add a private api to get the font size Closes #647 See merge request GNOME/pango!561
| * Use a better size for missing spaceMatthias Clasen2021-12-213-46/+11
| | | | | | | | | | | | | | | | | | | | Follow the Microsoft Typography recommendations from https://docs.microsoft.com/en-us/typography/develop/character-design-standards/whitespace and use half of an em for missing space. Update affected tests. Fixes: #647
| * fc: Implement get_absolute_sizeMatthias Clasen2021-12-211-0/+14
| | | | | | | | No surprises here.
| * Add a private api to get the font sizeMatthias Clasen2021-12-212-1/+21
| | | | | | | | | | | | | | | | Add a private vfunc to get the (absolute) size of a font. This default implementation just pulls it out of the font description, but we can do implement this cheaper without copying the font description.
| * NEWS: UpdatesMatthias Clasen2021-12-191-0/+1
|/
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2021-12-201-9/+10
|\ | | | | | | | | Cosmetics See merge request GNOME/pango!560