| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| | |
pangowin32: register a "Sans-Serif" font
See merge request GNOME/pango!613
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This creates a fake font family which will fall back to the first
available font in the alias list and as a result
pango_win32_font_map_load_font() will no longer fail for "sans-serif".
This was already done for other aliases, but for some reason not for
"sans-serif".
See #680
|
|/
|
|
|
|
|
|
|
|
|
| |
load_fontset() in pangowin32 has various fallback code in case
no font is found, but load_font() doesn't and just returns NULL
in more cases.
I saw that the other backends like fc and coretext just call
load_fontset() in load_font() and return the first one.
This copies this strategy to the win32 backend.
|
|\
| |
| |
| |
| |
| |
| | |
Fix move pango_layout_move_cursor_visually
Closes #679
See merge request GNOME/pango!608
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When moving the cursor off the paragraph end to
the left in RTL text, we were moving to the previous
line, and not to the next line, as expected.
Test included.
Fixes: #679
|
|/
|
|
|
| |
Recent versions of clang notice that pango_core_text_fontset_load_font's
`key` local variable isn't used and errors out. Remove it.
|
|
|
|
|
|
|
|
|
| |
This was showing up as crashes in pitivi and inkscape.
The added test does not crash, but it does produce
the wrong result without the fix.
Fixes: #678
|
|
|
|
|
|
|
| |
When PangoAttrList was changed to use an array,
we lost the code that maintained non-decreasing
order in pango_attr_list_change. Bring it back,
and add a test for this.
|
|
|
|
|
|
| |
It is not really needed.
Fixes: #674
|
|
|
|
|
|
|
|
|
|
|
| |
Pango 1.50.x and later require a HarfBuzz version that is buildable via
Meson, so we can just use the standard dependency() call for HarfBuzz
for all builds.
This means that we can drop all the items where we search for HarfBuzz
manually.
Also remove the stray HarfBuzz items that are no longer used.
|
|
|
|
|
|
|
| |
During post-processing for lines, take into
account the baselines for each run, and shift
them vertically to align them on the dominant
baseline.
|
|
|
|
|
| |
Pango names it PANGO_VERSION_CHECK not PANGO_CHECK_VERSION (like glib).
Fix the one incorrect mention in the documentation comment.
|
| |
|
|
|
|
|
|
|
|
|
| |
handling of segmentation attributes can introduce
line breaks, after we removed them in allow_breaks
handling. Change the order to handle allow_breaks
last, so this doesn't happen.
Update affected tests.
|
|
|
|
|
|
|
|
|
|
|
| |
We were passing a format specifier that starts
with ' ', which some implementations of that API
don't like.
This change removes an extraneous space from the
output. Update affected tests.
Fixes: #659
|
|
|
|
|
|
|
| |
To avoid trivialities, check that our context
has a fontmap, at a strategic place.
Fixes: #658
|
| |
|
|
|
|
| |
These are just wrappers of g_object_ref/unref.
|
|
|
|
| |
Just use g_object_ref/unref.
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
Clarify pango_attr_list_splice docs
Closes #653
See merge request GNOME/pango!574
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If gap is zero, don't limit the inserted attributes;
that does not make sense. Spell out the different
use cases in the docs.
Testcase included.
Fixes: #653
|
| |
| |
| |
| |
| | |
Make it explicit that the spliced-in attributes
are limited to the the 'gap'.
|
|/ |
|
|
|
|
| |
Fixes: #650
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If char is unsigned, the first byte of a non-trivial UTF-8 sequence will
be 0x80 or higher, instead of being negative. In this case we need to
process it as UTF-8, instead of printing only the first byte and then
skipping to the next UTF-8 character.
char is usually signed on x86 and some other architectures, but not on
the ARM or PowerPC families, among others.
Resolves: https://gitlab.gnome.org/GNOME/pango/-/issues/652
Signed-off-by: Simon McVittie <smcv@debian.org>
|
|
|
|
|
|
|
|
| |
When the font matrix has uneven scales, we need
to factor that into the slope that we get from
the font metrics.
Tested with a condensed italic Cantarell.
|
|\
| |
| |
| |
| | |
Add a test for letterspacing
See merge request GNOME/pango!570
|
| |
| |
| |
| | |
Just for completeness.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When our font matrix includes a slant, pass that information
to HarfBuzz, so it can adjust its mark positioning, metrics
like caret slope, etc.
This commit corrects the code that pulls the font matrix out
of fontconfig to properly take the flipped y axis between fontconfig
and pango into account.
Requires new api in HarfBuzz > 3.2
|
|/
|
|
|
| |
Add API to extract the slant ratio from a PangoMatrix.
Tests included.
|
|
|
|
|
| |
Face names are not actually guaranteed to be unique,
so don't say that.
|
|
|
|
| |
Mention GListModel.
|
| |
|
|
|
|
|
| |
Always fall back to the base font if the fontset
has no coverage.
|
|
|
|
|
|
|
|
| |
We want to define pango_trace_mark to nothing.
This reveals that we've never compiled these
calls out before, and there are some warnings
to be fixed in that case.
|
| |
|
|
|
|
| |
This will be used in the future
|
|
|
|
| |
This was just an empty header.
|
|
|
|
|
|
| |
This functionality is basically unused.
Lets not keep an array of coverages around
for it.
|
|
|
|
| |
Put PangoFontsetSimple into its own files.
|
|
|
|
|
|
|
| |
The Microsoft paper I was citing actually recommends
1/4 em for ASCII space. Make it so...
Update affected tests.
|
|
|
|
|
|
|
|
|
|
| |
Follow the Microsoft Typography recommendations from
https://docs.microsoft.com/en-us/typography/develop/character-design-standards/whitespace
and use half of an em for missing space.
Update affected tests.
Fixes: #647
|
|
|
|
| |
No surprises here.
|
|
|
|
|
|
|
|
| |
Add a private vfunc to get the (absolute) size
of a font. This default implementation just
pulls it out of the font description, but we
can do implement this cheaper without copying
the font description.
|
|
|
|
|
| |
Rename some variables, so we actually know
what these matrices are.
|
|
|
|
|
|
|
|
| |
When we change font scale for emulating small caps,
keep the original font around in the analysis, and use
it for calculating the run height.
Fixes: #622
|
|
|
|
|
|
| |
Add some api to let us store another font in
a PangoAnalysis. This will be used in the following
commits.
|