summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* win32: Set line height in metricsMatthias Clasen2019-07-051-0/+1
| | | | | Following information found here: https://docs.microsoft.com/en-us/windows/win32/gdi/string-widths-and-heights
* Add line height to font metricsMatthias Clasen2019-07-055-34/+89
| | | | Add a getter for the line height of a font.
* coretext: Plug a memory leakMatthias Clasen2019-07-051-0/+3
| | | | | | Patch by Alan Wang. Closes: https://gitlab.gnome.org/GNOME/pango/issues/281
* Mark deprecated apis more clearlyMatthias Clasen2019-07-044-20/+24
| | | | Move them to their own section in the docs.
* Merge branch 'header-cleanup' into 'master'Matthias Clasen2019-07-0444-761/+988
|\ | | | | | | | | Header cleanup See merge request GNOME/pango!63
| * Header cleanupMatthias Clasen2019-07-0444-761/+988
| | | | | | | | | | | | | | Abolish the PANGO_ENABLE_BACKEND and PANGO_ENABLE_ENGINE defines. All backend-only apis are moved into private headers, all apis that were engine-only are marked as deprecated, since engines are.
* | Merge branch 'pango-view-spacing-2' into 'master'Matthias Clasen2019-07-041-2/+27
|\ \ | |/ |/| | | | | pango-viewer: Optionally show line rects See merge request GNOME/pango!62
| * pango-viewer: Optionally show line rectsMatthias Clasen2019-07-041-2/+27
|/ | | | | | With --annotate 3, show the logical rects for each line. This makes the spacing between lines easily visible.
* Merge branch 'pango-view-spacing' into 'master'Matthias Clasen2019-07-041-0/+6
|\ | | | | | | | | pango-view: Add a --spacing option See merge request GNOME/pango!61
| * pango-view: Add a --spacing optionMatthias Clasen2019-07-041-0/+6
|/
* Merge branch 'kill-gtype-init' into 'master'Matthias Clasen2019-07-047-33/+0
|\ | | | | | | | | Drop g_type_init calls See merge request GNOME/pango!60
| * Drop g_type_init callsMatthias Clasen2019-07-047-33/+0
|/ | | | | These were ifdefed to an older version of GLib than we require now, so are just dead code.
* Merge branch 'pair-table' into 'master'Matthias Clasen2019-07-031-1/+42
|\ | | | | | | | | Update the pair table See merge request GNOME/pango!59
| * Update the pair tableMatthias Clasen2019-07-031-1/+42
|/ | | | | This was done by comparing with the Bidi_Mirrored property in Unicode 12.
* Merge branch 'testfiles' into 'master'Matthias Clasen2019-07-033-0/+2385
|\ | | | | | | | | Include more Unicode 11 test cases See merge request GNOME/pango!33
| * Include more Unicode 11 test casesPeng Wu2019-03-043-0/+2385
| | | | | | | | | | Add more Unicode 11 test cases files: WordBreakTest.txt and SentenceBreakTest.txt.
* | Merge branch 'libthai' into 'master'Matthias Clasen2019-07-031-4/+4
|\ \ | | | | | | | | | | | | Unicode 11 support for Thai language See merge request GNOME/pango!20
| * | Update break-thai.c to Unicode 11Peng Wu2018-11-291-4/+4
| | | | | | | | | | | | | | | According to the comments from break-thai.c, use alternative approach for break-thai.c .
* | | Merge branch 'meson-option-names' into 'master'Matthias Clasen2019-07-013-4/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | meson: Use 'standard' option names Closes #364 See merge request GNOME/pango!57
| * | | meson: Use 'standard' option namesMatthias Clasen2019-07-013-4/+4
|/ / / | | | | | | | | | | | | | | | | | | | | | Use 'gtk_doc' for documentation and 'introspection' for, well, introspection. This matches what the rest of the stack does. Fixes https://gitlab.gnome.org/GNOME/pango/issues/364
* | | Merge branch 'replace-deprecated-hb-api' into 'master'Matthias Clasen2019-07-012-5/+25
|\ \ \ | | | | | | | | | | | | | | | | Replace deprecated Harfbuzz API See merge request GNOME/pango!39
| * | | Drop deprecated Harfbuzz APIEmmanuele Bassi2019-01-041-4/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Harfbuzz deprecated hb_ot_tag_from_language() and hb_ot_tags_from_script(), and replaced them both with a single call, hb_ot_tags_from_script_and_language(). Let's move Pango to the new API, and avoid the deprecated calls.
| * | | Require Harfbuzz 2.0Emmanuele Bassi2019-01-041-1/+1
| | | | | | | | | | | | | | | | We're going to use newer API to replace deprecated calls.
* | | | Merge branch 'coretext-fontset-multifix' into 'master'Matthias Clasen2019-07-011-14/+14
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Core text: Fix indexing into cascade list when multiple fonts are selected Closes #352 See merge request GNOME/pango!54
| * | | | Core text: Fix indexing into cascade list when multiple fonts are selectedJeremy Tan2019-06-101-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug introduced from 633fd80. With that changeset, if multiple fonts from the provided font family are found, they are added to the start of fontset->fonts. Space for the cascade list (based on the 'best'/first font) then follows. However, pango_core_text_fontset_get_font_at was not updated to match this change. So it still assumes that there is at most only one 'real' font in fonset->fonts. With this assumption, the indexing into fontset->cascade_list became incorrect, leading to an out-of-bounds access on that list, resulting in an exception being thrown. Track the number of fonts found in pango_core_text_fontset_new in real_fount_count, and use this as the offset into cascade_list. This also fixes a memory leak; when a PangoCoreTextFontSet is initialised, fonts and coverages are pre-initialised, but this was being discarded and re-set in pango_core_text_fontset_new without freeing the previous initialisation.
* | | | | Merge branch 'test' into 'master'Matthias Clasen2019-07-013-153/+15
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up markup-test, do case-insensitive diffs Closes #356 See merge request GNOME/pango!44
| * | | | | test-common: do case-insensitive diffsRoss Burton2019-03-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Typically the tests don't care about the case of the characters, but g_printf("%s", 0x0) returns "(null)" if glibc is being used and "(NULL)" if gnulib's drop-in replacement are used. Fixes #356
| * | | | | markup-parse: don't duplicate codeRoss Burton2019-03-252-151/+4
| | | | | | | | | | | | | | | | | | | | | | | | Use the functions in test-common.c instead of replicating them.
| * | | | | test-common: extend print_attribute()Ross Burton2019-03-251-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The copy of print_attribute() in markup-parse.c handles more attributes, so add those here too.
* | | | | | Merge branch 'x-small' into 'master'Matthias Clasen2019-07-011-2/+2
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the value of PANGO_SCALE_X_SMALL Closes #372 See merge request GNOME/pango!56
| * | | | | Fix the value of PANGO_SCALE_X_SMALLEgmont Koblinger2019-06-271-2/+2
|/ / / / / | | | | | | | | | | | | | | | Closes #372
* | | | | Merge branch 'gen-script-for-lang-avoid-empty-arrays' into 'master'Chun-wei Fan2019-06-072-3/+9
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tools/gen-script-for-lang.c: Avoid generating code with empty arrays See merge request GNOME/pango!53
| * | | | | Re-generate pango-script-lang-table.hChun-wei Fan2019-06-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This contains the updates that removes the empty arrays from the generated code.
| * | | | | tools/gen-script-for-lang.c: Avoid generating code with empty arraysChun-wei Fan2019-06-061-1/+7
|/ / / / / | | | | | | | | | | | | | | | | | | | | Empty arrays are one of the C99 features that is not currently supported by any Visual Studio versions. Avoid doing so.
* | | | | Merge branch 'emoji-layout-test' into 'master'Matthias Clasen2019-06-035-9/+37
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Emoji layout test See merge request GNOME/pango!52
| * | | | | Add a layout test with EmojiMatthias Clasen2019-06-032-0/+27
| | | | | |
| * | | | | Regenerate expected layout test outputMatthias Clasen2019-06-032-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The locale is reflected in the lang field, so the output changes due to the previous commit.
| * | | | | layout test: Use a better localeMatthias Clasen2019-06-031-1/+2
|/ / / / / | | | | | | | | | | | | | | | | | | | | We need to use a Unicode locale in order to test Emoji and similar glyphs.
* | | | | Merge branch 'milotype-pango-pangram' into 'master'Matthias Clasen2019-05-301-3/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Update Croatian pangram in pango-language-sample-table.h See merge request GNOME/pango!47
| * | | | | Update Croatian pangram in pango-language-sample-table.hmilotype2019-05-301-3/+3
|/ / / / /
* | | | | Silence a compiler warningMatthias Clasen2019-05-271-1/+1
| | | | |
* | | | | Merge branch 'deprecate-pango-script' into 'master'Matthias Clasen2019-05-276-268/+284
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Deprecate pango script See merge request GNOME/pango!51
| * | | | | Add a note to pango_language_get_scripts docsMatthias Clasen2019-05-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Explain that returned script values are, in fact, from the GUnicodeScript enumeration.
| * | | | | Regenerate the script-lang tableMatthias Clasen2019-05-271-249/+251
| | | | | |
| * | | | | Deprecate pango_script_for_unicharMatthias Clasen2019-05-272-1/+2
| | | | | |
| * | | | | tools: Use GUnicodeScript in gen-script-for-langMatthias Clasen2019-05-271-9/+9
| | | | | |
| * | | | | Stop using the PangoScript typeMatthias Clasen2019-05-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were using the enum nicks in on place. Use GUnicodeScript instead, since that is getting updated for newer Unicode versions.
| * | | | | Add more deprecation notes around PangoScriptMatthias Clasen2019-05-272-7/+16
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | Make it clear that PangoScript is deprecated, and will not be updated. And that all APIs are in fact returning GUnicodeScript, and callers have to handle that.
* | | | | Revert "Replace PangoScript by GUnicodeScript"Michael Catanzaro2019-05-274-133/+142
| | | | | | | | | | | | | | | This reverts commit 3e754defc364a89b2136894399b3463976840156
* | | | | Merge branch 'kill-pango-script' into 'master'Matthias Clasen2019-05-256-146/+141
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Replace PangoScript by GUnicodeScript See merge request GNOME/pango!27