summaryrefslogtreecommitdiff
path: root/pango
Commit message (Collapse)AuthorAgeFilesLines
* Move pangofc to libpangoMatthias Clasen2019-07-091-8/+22
| | | | | Move the fontconfig+harfbuzz using parts to libpango, since we want to start using harfbuzz on all platforms.
* Reduce overlinkingMatthias Clasen2019-07-091-5/+3
| | | | | Only link libpangoxft and libpangocairo against xft and cairo.
* Fix a compiler warningMatthias Clasen2019-07-091-1/+0
|
* Fix a typoMatthias Clasen2019-07-091-1/+1
|
* Merge branch 'kill-lang-engine' into 'master'Matthias Clasen2019-07-094-69/+19
|\ | | | | | | | | Remove lang engine use See merge request GNOME/pango!73
| * Remove language engine remnantsMatthias Clasen2019-07-094-59/+3
| | | | | | | | | | Drop all internal use of language engines. The lang_engine field in PangoAnalysis is now unused.
| * break: Call break_script directlyMatthias Clasen2019-07-091-11/+17
| | | | | | | | No need to go through the engine api anymore.
* | Revert "break: Mark breaks induced by soft hyphens"Matthias Clasen2019-07-092-12/+2
| | | | | | | | This reverts commit 50b1e8532c5211cebd3cea935f9ac91a087d5c35.
* | Don't rely on log attrs for soft hyphenMatthias Clasen2019-07-091-1/+12
| | | | | | | | | | Instead, look at the pre- and post-break text to figure out what is needed.
* | Separate out the soft hyphen handlingMatthias Clasen2019-07-091-29/+57
|/ | | | Move things into some helper functions.
* Merge branch 'soft-hyphen' into 'master'Matthias Clasen2019-07-073-3/+107
|\ | | | | | | | | Soft hyphen See merge request GNOME/pango!68
| * layout: Insert hyphens at soft hyphen breaksMatthias Clasen2019-07-071-1/+95
| | | | | | | | | | When we take a break at a soft hyphen, insert a visible hyphen.
| * break: Mark breaks induced by soft hyphensMatthias Clasen2019-07-072-2/+12
| | | | | | | | | | | | Use a bit in PangoLogAttr to mark line breaks that are due to soft hyphens; we want to insert hyphens here later, if the break is taken.
* | cairo: Give missing spaces a better widthMatthias Clasen2019-07-071-0/+46
| | | | | | | | | | We are not rendering hex boxes for missing spaces, so we don't need to give them the hex box width.
* | cairo: Don't render hex box for spaceMatthias Clasen2019-07-071-1/+6
|/ | | | | | Even if a font has no space glyph, we don't want to render a hex box for it, since just rendering nothing does a decent approximation of space.
* Keep PangoFontmap derivableMatthias Clasen2019-07-072-91/+71
| | | | This functionality is used in PackageKit.
* Remove an unused labelMatthias Clasen2019-07-061-1/+0
|
* Avoid a critical from markup parsingMatthias Clasen2019-07-051-0/+13
| | | | | | gravity='auto' is not a valid value here. Closes: https://gitlab.gnome.org/GNOME/pango/issues/203
* Update docsMatthias Clasen2019-07-051-2/+2
| | | | Make a new image for layout parameters.
* layout: Add line-spacingMatthias Clasen2019-07-053-20/+99
| | | | | | | | | | | | | | If line-spacing is set to a non-zero value, we place lines so that baseline2 = baseline1 + line-spacing * height2 where height2 is the line height of the second line. In this case, we ignore spacing. If line-spacing is set to zero, spacing is applied as before.
* Add line heights to layout linesMatthias Clasen2019-07-052-39/+109
| | | | Add a getter for the line height of a layout line.
* coretext: Set line height in metricsMatthias Clasen2019-07-051-0/+1
|
* 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-043-16/+16
| | | | Move them to their own section in the docs.
* Header cleanupMatthias Clasen2019-07-0442-758/+987
| | | | | | | 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.
* Drop g_type_init callsMatthias Clasen2019-07-044-23/+0
| | | | | These were ifdefed to an older version of GLib than we require now, so are just dead code.
* Update the pair tableMatthias Clasen2019-07-031-1/+42
| | | | | This was done by comparing with the Bidi_Mirrored property in Unicode 12.
* 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 .
* | meson: Use 'standard' option namesMatthias Clasen2019-07-011-1/+1
| | | | | | | | | | | | | | | | 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-011-4/+24
|\ \ | | | | | | | | | | | | 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.
* | | 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.
* | | | Fix the value of PANGO_SCALE_X_SMALLEgmont Koblinger2019-06-271-2/+2
|/ / / | | | | | | | | | Closes #372
* | | 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.
* | | Update Croatian pangram in pango-language-sample-table.hmilotype2019-05-301-3/+3
| | |
* | | Silence a compiler warningMatthias Clasen2019-05-271-1/+1
| | |
* | | 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
| | |
* | | 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-272-131/+140
| | | | | | | | | This reverts commit 3e754defc364a89b2136894399b3463976840156
* | | Replace PangoScript by GUnicodeScriptMatthias Clasen2019-05-252-140/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | This commit replaces the PangoScript enum by a typedef to GUnicodeScript, and preserves the old enum values as defines. This depends on adding an enum type for GUnicodeScript in gobject.
* | | Respect Dependent Vowels for Indic languagePeng Wu2019-04-091-63/+7
| | | | | | | | | | | | For Dependent Vowels, the grapheme needs to be deleted by character.
* | | import pango-break-table.hPeng Wu2019-04-091-0/+532
| | |
* | | docs: pango_read_line/scan_word/string take normal reference to GStringRico Tzschichholz2019-04-041-3/+3
| | |