| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
There is no more fontconfig in it, and we use
it unconditionally everywhere.
T#
|
|
|
|
| |
pangofc-shape.c does not use any fc parts 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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Don't zero out a line separator at the end of line
if we are showing space or ignorables. And if we
zero out whitespace at the end of the line, make
sure we don't draw anything there by setting the
glyph to EMPTY.
Without this, we are getting the [LS] hex box
rendered on top of the last character in a line,
when the line separator ends up being visible.
|
|
|
|
|
|
|
|
|
| |
Instead of a [SPC] hex box, just render a
centered dot, as is commonly used to indicate
space. Also render synthetic glyphs for tabs
and newlines.
This makes single-paragraph mode prettier.
|
|
|
|
|
|
| |
When the 'visible space' option is set, also
arrange for tab characters to be passed on to
the rendering layer as non-empty.
|
|
|
|
|
|
|
| |
When told to make space visible, we use the glyph
for 0x2324 instead of 0x20. We have to do some
post-processing to counteract harfbuzz using
space glyphs for its own purposes.
|
| |
|
| |
|
|
|
|
|
|
|
| |
We tell harfbuzz to preserve the ignorables in
shaping output, and use our glyph lookup to turn
them into unknown glyphs that we can shape into
custom hex boxes.
|
| |
|
| |
|
|
|
|
|
|
| |
For ignorable characters such as U+00AD, Soft Hyphen,
render a hex box with their 'nickname', which is a
2-6 character short form such as SHY.
|
|
|
|
|
|
|
| |
This returns nicknames and formatting information
for default ignorable characters. This will be
used to render customized hex boxes for these
characters.
|
|
|
|
|
| |
This is needed to let shape flags influence
glyph selection.
|
| |
|
|
|
|
|
| |
This will let apps opt into shaping options
from the high-level api.
|
|
|
|
| |
This will let us pass shaping options in the future.
|
|
|
|
|
|
| |
We want to influence shaping in some ways,
e.g. make spaces visible, so add a variant
of pango_shape() that takes flags.
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| |
| |
| | |
Drop kerning function
See merge request GNOME/pango!83
|
| |
| |
| |
| |
| | |
Include freetype.h in headers where freetype
types are used.
|
| |
| |
| |
| |
| | |
We don't use _pango_cairo_fc_font_map_get_library
anymore.
|
|/
|
|
|
|
| |
This function has long been deprecated;
and it is is using freetype. So drop the
implementation.
|
|\
| |
| |
| |
| | |
Font features getter
See merge request GNOME/pango!82
|
| | |
|
| |
| |
| |
| |
| | |
We take features out of the FcPattern and
translate them into harfbuzz features.
|
|/ |
|
|\
| |
| |
| |
| | |
Redo coverage
See merge request GNOME/pango!81
|
| |
| |
| |
| |
| |
| | |
Make PangoCoverage a GObject, and subclass
it in pangofcfontmap.c. This lets us use
the FcCharSet without copying the data.
|
| |
| |
| |
| |
| |
| | |
This drops the language dependency and
coverage levels, both of which are not
used in pango.
|
| |
| |
| |
| | |
This replaces all uses of _pango_engine_shape_covers.
|
|/
|
|
|
|
|
|
|
|
|
| |
Add a pango_font_covers function, which is like
pango_shape_engine_covers, without the engine.
This api is simpler than PangoCoverage in that
it does not take a language as input, and only
returns a boolean.
This matches the harfbuzz api.
|
|\
| |
| |
| |
| |
| |
| | |
itemize: Don't break runs for font_features
Closes #242
See merge request GNOME/pango!79
|