| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Clean up some headers, and shovel docs around.
|
| |
|
|\
| |
| |
| |
| | |
Better hyphens
See merge request GNOME/pango!89
|
| | |
|
| | |
|
| |
| |
| |
| | |
This is necessary to interpret the attributes.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We implement this in pango_tailor_break(),
after the script-specific breaking.
When line breaks are forbidden in a range,
we remove line and char break opportunities
inside the range.
|
| |
| |
| |
| |
| | |
Add a new attribute type, and parse allow_breaks="false"
in markup. This is useful to prevent hyphenation of words.
|
| |
| |
| |
| |
| |
| | |
Without this, it is not possible to interpret
attributes, whose offsets are relative to the
beginning of the paragraph.
|
| |
| |
| |
| |
| |
| | |
Look for whether the char before the break
is not whitespace and doesn't look like a
hyphen.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In f523c25c12c I changed the font fallback list from hardcoded to reading it from
the registry to cover all potentially default Windows UI fonts. Turns out that this
doesn't cover all of Unicode and breaks things like Marathi.
This adds back the language specific font fallbacks to each font read from the registry
to restore the old Unicode coverage.
Fixes #375
|
|\ \
| | |
| | |
| | |
| | | |
Improve build experience in regards to Cairo/PangoCairo
See merge request GNOME/pango!93
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
On MSVC builds, Cairo may be found either via pkg-config files or
manually through finding headers and libs, so we need to ensure that we
create pangocairo.pc correctly, otherwise items that depend on
PangoCairo may not link correctly.
|
| | |
| | |
| | |
| | | |
Ensure that we declare variables at the top of the block.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add a function that can update positions of
attributes as the underlying text is changing.
This is meant to be used to update an attribute
list as text transformations are applied, like
capitalization.
|
| |/
|/|
| |
| |
| | |
This was a gap in the attribute api - no way
to get attributes back out of a list.
|
| | |
|
|/ |
|
|\
| |
| |
| |
| | |
Kill shape engines
See merge request GNOME/pango!75
|
| |
| |
| |
| | |
It is all harfbuzz now, so call it pango_hb_shape.
|
| |
| |
| |
| | |
It is no longer used in libpangoft2.
|
| | |
|
| |
| |
| |
| |
| | |
Deprecate pango_font_find_shaper, make it return
NULL, and remove the find_shaper vfunc.
|
| |
| |
| |
| | |
It is no longer used.
|
| |
| |
| |
| | |
It is no longer used.
|
| |
| |
| |
| | |
It is no longer used.
|
| |
| |
| |
| | |
This field is unused now.
|
| |
| |
| |
| |
| |
| | |
Drop internal shape engine uses and call
_pango_fc_shape directly. This makes us
use harfbuzz for shaping, on all backends.
|
| |
| |
| |
| |
| |
| |
| | |
We temporarily export it since it is still
used for the shape engine in libpangoft2.
This will be undone when we drop the shape
engine.
|
| |
| |
| |
| | |
pangofc-shape.c does not use any pangofc api anymore.
|
| |
| |
| |
| |
| |
| |
| | |
As we move towards subpixel positioning and
unhinted rendering, rounding the glyph positions
and widths between shaping and rendering is
counterproductive. So stop doing that.
|
| | |
|
|/
|
|
|
|
| |
It makes more sense to do this in the frontend
that hands the objects out, rather than in each
backend implementation.
|
|
|
|
|
|
|
|
|
| |
This renders correctly in ci.
This attempts to acquire the hb_font_t from the HFont that we acquire
from the Windows HFONT that we use, so that we can pass things to
HarfBuzz, which will handle the shaping for us.
win32: Set scale on hb font
|
|
|
|
| |
This has been tested and renders correctly.
|
|
|
|
|
| |
Stop using FT_Face here, so we can stop
including freetype headers.
|
| |
|
|
|
|
|
| |
We are moving away from a freetype dependency,
so these will be going away at some point.
|
|
|
|
| |
Harfbuzz has the api, no need to use freetype.
|
|
|
|
|
|
| |
Note that some of the harfbuzz api we use here
has not landed yet.
See https://github.com/harfbuzz/harfbuzz/pull/1432
|
|
|
|
| |
This is now unused.
|
|
|
|
| |
We don't need our own caching here.
|
|
|
|
|
| |
Use typechecks for the two remaining bits of
code that use PangoFcFont.
|
|
|
|
|
|
| |
The frontend is caching this object, and we are giving
it out to applications. We really can't allow them to
modify it in any way.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move all the code that sets up the hb_font_t to
pango_fc_font_create_hb_font, and use it from
the shaper. This is the second step towards
taking over font management.
Even better, harfbuzz has a ready-made function
for this. We can drop a lot of FT_Face-using code
this way. We assume unhinted rendering for now,
so we can set ppem to 0.
|
| |
|
|
|
|
|
| |
Add pango_font_get_hb_font, which will make it easier
access harfbuzz features.
|
| |
|