| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| |
| |
| | |
coretext: correctly clamp the core text weights at min/max values
See merge request GNOME/pango!502
|
| |
| |
| |
| | |
Addresses bug found in #624
|
|\ \
| | |
| | |
| | |
| | | |
layout: Try harder to not produce overlong lines
See merge request GNOME/pango!501
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Our accounting for run lengths is imperfect (mainly
due to log widths for clusters being evenly distributed),
so it can happen that after reshaping the split item,
we find that it does not actually fit in the remaining
width. Previously, we would just use the split run
at that point and produce an overlong line. Instead,
undo the split, disable the breakpoint we used, and
try again.
|
| | |
| | |
| | |
| | |
| | |
| | | |
This undoes the effect of pango_item_split.
We will use this in future commits.
Private for now.
|
| | |
| | |
| | |
| | | |
This will let us use some of them during layout.
|
| | |
| | |
| | |
| | |
| | |
| | | |
GTK frequently uses this width during measuring,
so it is good if we can reproduce what happens
in this case.
|
| | |
| | |
| | |
| | | |
This can make it easier to reproduce problems.
|
|/ / |
|
|\ \
| |/
|/|
| |
| | |
layout: Fix a poblem with hyphen width
See merge request GNOME/pango!500
|
| | |
|
| |
| |
| |
| | |
This checks behavior that is required by GTK.
|
|/
|
|
|
| |
In some cases, we were forgetting to account
for the width of a hyphen.
|
|
|
|
| |
Mention new attribute values in markup docs.
|
|\
| |
| |
| |
| | |
Bump fontconfig dep to 2.13.0
See merge request GNOME/pango!499
|
| |
| |
| |
| | |
We are requiring a new enough fontconfig now.
|
| |
| |
| |
| |
| | |
This version of fontconfig has all the API
we are using, and was released in 2018.
|
|\ \
| |/
|/|
| |
| | |
Call hb_font_set_ptem when creating fonts
See merge request GNOME/pango!498
|
|/
|
|
|
| |
This is useful information for Harfbuzz to have,
so pass it along.
|
|
|
|
| |
Add the new variant values to the docs.
|
| |
|
|\
| |
| |
| |
| | |
Emulate Small Caps if not available from the font
See merge request GNOME/pango!497
|
| |
| |
| |
| |
| |
| | |
Take text transforms into account when emulating
Small Caps. This requires us to have log attrs
to determine word starts.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Move private API out of the 'Public API' section.
|
| |
| |
| |
| | |
pango_itemize_with_font belongs into pango-item-private.h.
|
| |
| |
| |
| | |
We want last-one-wins semantics here.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When we detect that one of the other casing variants
is requested, but not available via OpenType font
features, emulate it by splitting the item into
lowercase and uppercase runs and apply a suitable
font scale and text transform to the runs to get
the desired effect.
Still to do: resolve conflics with preexisting
text transform attributes.
|
| |
| |
| |
| |
| |
| | |
Test some more tests for roundtripping
casing variants from font description to
font and back.
|
| |
| |
| |
| |
| |
| | |
Pass all the PangoVariant values through the
FcPattern by translating them into suitable
OpenType features in the pattern.
|
| |
| |
| |
| |
| | |
Add values for all the css casing variants to
the PangoVariant enum.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When we detect that Small Caps are requested, but not
available via OpenType font features, emulate Small Caps
by splitting the item into lowercase and uppercase runs
and add text transform and font scale attributes to the
lowercase runs to get the effect of Small Caps.
Still to do: resolve conflicts with preexisting text
transform attributes.
|
| |
| |
| |
| |
| |
| | |
Factor out the 'consider as space' part from the
itemization code, so we can reuse it when breaking
items into upper- and lowercase runs.
|
| |
| |
| |
| | |
This is not used by anything yet.
|
| |
| |
| |
| |
| | |
This will be used in the implementation of emulated
Small Caps.
|
| | |
|
|/
|
|
|
|
| |
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.
|
|\
| |
| |
| |
| | |
fc: Implement PANGO_VARIANT_SMALL_CAPS
See merge request GNOME/pango!496
|
| |
| |
| |
| |
| |
| |
| | |
Add a test that verifies that PANGO_VARIANT_SMALL_CAPS
survives a roundtrip from font description to font and
back, and that it shows up in the font as smcp=1 in
the OpenType features.
|
|/
|
|
|
|
|
| |
Arrange for PANGO_VARIANT_SMALL_CAPS to be translated
into the OpenType feature smcp=1 and back. This makes
small caps survive a roundtrip from font description
to font and back.
|
|\
| |
| |
| |
| |
| |
| | |
Fix advance widths with transforms
Closes #620
See merge request GNOME/pango!495
|
|/
|
|
|
|
|
|
|
|
| |
The hb_font_t we were passing to Harfbuzz
for shaping was not taking context transforms
into account, and therefore was not scaling
advance widths as necessary. Always go through
pangos glyph extents to fix this.
Fixes: #620
|
|\
| |
| |
| |
| | |
Add a few more default-ignorables
See merge request GNOME/pango!494
|
|/
|
|
|
|
| |
Add some more directional formatting characters
to the list of default-ignorables that we make
visible when requested: ALM, LRI, RLI, FSI, PDI.
|
|\
| |
| |
| |
| | |
Revert "ci: Allow macos to fail"
See merge request GNOME/pango!493
|
| |
| |
| |
| |
| |
| | |
This reverts commit e46a0fb53e92f359e739a818f0e0ce0d2fbf6c18.
We welcome the macos runner back.
|
|/
|
|
|
| |
I can't debug this using just the ci runner,
so skip it until somebody can.
|
|\
| |
| |
| |
| | |
fontset: Add a missing annotation
See merge request GNOME/pango!492
|
|/
|
|
|
| |
pango_fontset_simple_append consumes the font
that it is given.
|