diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-07-15 20:58:13 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-20 11:53:00 -0700 |
commit | 1074fcae667461fda72fc85551f37a6fe7eb40ac (patch) | |
tree | 67442ab8ace7395f02b92de4f8ae0a514d8d2841 /pango/pango-item.h | |
parent | 5c5c7bb310d886c1c4900440aefda78d676c691b (diff) | |
download | pango-1074fcae667461fda72fc85551f37a6fe7eb40ac.tar.gz |
Don't insert extra runs for hyphens
Instead, reshape the pre-break run with the
soft hyphen replaced by an actual hyphen.
This is unfortunately inefficient, we copy
the entire text for this. The alternative
(scatter-gather populating the harfbuzz
buffer) is too hard to manage.
Diffstat (limited to 'pango/pango-item.h')
-rw-r--r-- | pango/pango-item.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pango/pango-item.h b/pango/pango-item.h index 2a7bcb2a..d4162f90 100644 --- a/pango/pango-item.h +++ b/pango/pango-item.h @@ -51,13 +51,23 @@ typedef struct _PangoItem PangoItem; #define PANGO_ANALYSIS_FLAG_IS_ELLIPSIS (1 << 1) /** + * PANGO_ANALYSIS_FLAG_NEED_HYPHEN: + * + * This flag tells Pango to add a hyphen at the end of the + * run during shaping. + * + * Since: 1.44 + */ +#define PANGO_ANALYSIS_FLAG_NEED_HYPHEN (1 << 2) + +/** * PangoAnalysis: * @shape_engine: unused * @lang_engine: unused * @font: the font for this segment. * @level: the bidirectional level for this segment. * @gravity: the glyph orientation for this segment (A #PangoGravity). - * @flags: boolean flags for this segment (currently only one) (Since: 1.16). + * @flags: boolean flags for this segment (Since: 1.16). * @script: the detected script for this segment (A #PangoScript) (Since: 1.18). * @language: the detected language for this segment. * @extra_attrs: extra attributes for this segment. |