summaryrefslogtreecommitdiff
path: root/pango/pango-item-private.h
Commit message (Collapse)AuthorAgeFilesLines
* Add pango_item_unsplitMatthias Clasen2021-11-111-0/+4
| | | | | | This undoes the effect of pango_item_split. We will use this in future commits. Private for now.
* Reshuffle itemize APIMatthias Clasen2021-11-081-0/+6
| | | | | | | | | | | Split the post-processing off into a separate function that can take log attrs in addition. This will allow us to handle word starts when dealing with text transforms for emulated Small Caps. So far, this is all private API that is used from PangoLayout. Please file an issue if you want to access Small Caps emulation without PangoLayout.
* Reshuffle private headers a bitMatthias Clasen2021-11-071-4/+14
| | | | pango_itemize_with_font belongs into pango-item-private.h.
* pango-item: Add a helperMatthias Clasen2021-11-061-0/+5
| | | | | | Add a helper function that used to live with the Harfbuzz shaping code in shape.c. It will be used in the itemize code too, in the future.
* Add a missing semicolonMatthias Clasen2021-08-291-1/+1
| | | | This broke the msvc build.
* item: Add a char offsetMatthias Clasen2021-08-281-0/+73
Add a char_offset field to PangoItem, compute it as part of itemization and update it when splitting items. Keeping this number around cuts down on the amount of list and utf8 walking we need to do later. We have to do some extra shenanigans to preserve abi in the face of pango's open-coded structs, so we introduce a PangoItemPrivate type that is used internally. On 64bit, PangoItem has a 4 byte whole, so we can keep the size of PangoItemPrivate the same. No such luck on 32bit.