| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Add private api to get the necessary information from
the font backend, and drop the hack that was added in
d4356779945855f7cc.
|
|
|
|
|
|
| |
Start using private vfuncs for PangoFont, and use it
to replace the recently introduced pango_fc_font_get_languages
with a frontend api.
|
|
|
|
| |
We're going to add api.
|
| |
|
| |
|
|\
| |
| |
| |
| | |
tests: Fix implicit function declaration warnings with gcc
See merge request GNOME/pango!381
|
|/
|
|
| |
This includes stdlib.h for strtol, strtoll and strtod functions declaration
|
|\
| |
| |
| |
| |
| |
| | |
ellipsize: Try harder to find the right font
Closes #575
See merge request GNOME/pango!380
|
|/
|
|
|
|
|
|
|
|
| |
pango_attr_iterator_get_attributes only returns
the innermost attribute of each kind. That is correct
for attributes that supersede each other, but not for
font descriptions, which get merged. So, keep all
font attributes in the returned list.
Update affected tests.
|
|\
| |
| |
| |
| |
| |
| | |
font-desc: Use local double values to store sizes
Closes #580
See merge request GNOME/pango!377
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Under i386 multiplying double and integer values and cast it to integer
may end up to compute the wrong value when only 387 FPU is used, because
the temporary value will be stored in a register whose precision isn't
good enough.
And so, some multiplications which are expected to produce an integer,
will actually return a truncated value, that will be eventually floored.
An example is 1.2 * 12800 that is clearly 15360.0, but will produce
15359 when casted to int in the said i386 environment.
So use a temporary double variable to ensure that we do this computation
in the double scope, before casting to int.
And this will avoid using the said register, even when using more
aggressive optimizations (as per marking the local variable volatile).
Fixes: https://gitlab.gnome.org/GNOME/pango/-/issues/580
|
| |\
| | |
| | |
| | |
| | | |
tests: Avoid a possible invalid access
See merge request GNOME/pango!376
|
| | |
| | |
| | |
| | |
| | |
| | | |
For tests where the wrong fonts break things,
check that we have Cantarell, and skip them
if not.
|
| | |
| | |
| | |
| | |
| | | |
We were rounding things differently, giving
us off-by-one errors on MacOs.
|
| |/
| |
| |
| |
| | |
The return value of setlocale is only good until
the next call. Also, consistently use en_US.UTF-8.
|
|\ \
| | |
| | |
| | |
| | | |
Use GMutex for the shared thai brk
See merge request GNOME/pango!378
|
| | |
| | |
| | |
| | | |
Use GMutex to protect the thai_brk in multithreading.
|
| | |
| | |
| | |
| | |
| | |
| | | |
For tests where the wrong fonts break things,
check that we have Cantarell, and skip them
if not.
|
| | |
| | |
| | |
| | |
| | | |
We were rounding things differently, giving
us off-by-one errors on MacOs.
|
|/ /
| |
| |
| |
| | |
The return value of setlocale is only good until
the next call. Also, consistently use en_US.UTF-8.
|
| |
| |
| |
| | |
This is part of #579.
|
| |
| |
| |
| |
| |
| | |
Change ci to point at the main branch instead of master.
This is part of #579
|
|/
|
|
|
|
|
| |
Change the source locations in the gi-docgen files
to point to main instead of master.
This is part of #579
|
|\
| |
| |
| |
| | |
itemize: Improve handling of spaces
See merge request GNOME/pango!374
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Put spaces into the previous or the next item,
depending on which one has the 'better' font.
This reduces space variations in the presence
of font fallback.
See: #249
|
|\ \
| |/
| |
| |
| | |
Add a way to show fonts in test-layout output
See merge request GNOME/pango!371
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Another case where using a GPtrArray instead of
a GArray of pointers is nicer.
|
| |
| |
| |
| |
| | |
Use a GPtrArray instead of a GArray of pointers,
to avoid case-align warnings.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
This is sometimes useful, even if we want to avoid
it in ci. So add an environment variable,
PANGO_TEST_SHOW_FONT to make it show the actual font
instead of 'OMITTED'.
|
|/
|
|
|
| |
We require harbuzz to be at least 2.0.0 for a while now.
No need to check that version at runtime.
|
|\
| |
| |
| |
| |
| |
| | |
Remove an erroneous early exit
Closes #564
See merge request GNOME/pango!372
|
| |
| |
| |
| |
| |
| | |
Add more cases to cover move of the branches
in this complicated function. Among other things,
this tests the fix in the previous commit.
|
|/
|
|
|
|
|
|
| |
pango_attr_list_change was returning early in one
case, missing to do some necessary cleanup of the
list.
Fixes: #564
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
layout: make the height of an empty line match a regular line
Closes #577
See merge request GNOME/pango!363
|
| |
| |
| |
| |
| | |
When using line-spacing, the height of an empty line is the same as when line-spacing has zero value.
Take the value from font metrics.
|
|\ \
| | |
| | |
| | |
| | | |
docs: Small layout docs improvements
See merge request GNOME/pango!370
|
|/ /
| |
| |
| |
| | |
Add some more default values, and correct the docs
for pango_layout_set_spacing wrt to the default value.
|
|\ \
| | |
| | |
| | |
| | | |
win32: Don't export private symbol
See merge request GNOME/pango!369
|
| | |
| | |
| | |
| | |
| | |
| | | |
Include llvm on the image, so that we can use
llvm-symbolizer, too try and get meaningful stacktraces
out of asan.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Make attribute_from_string() parse enum attribute values
in the same way as PangoMarkup, and use it in the
attribute tests.
Still to do: Do the same for flags. The flags parsing
function isn't exported, so this needs our tests to be
statically linked.
|
| | | |
|
|/ /
| |
| |
| | |
We need stdlib.h for exit().
|
|\ \
| | |
| | |
| | |
| | | |
pangowin32: Clear cmap on finalize
See merge request GNOME/pango!318
|
| | |
| | |
| | |
| | |
| | | |
Implement copy method for format_4_cmap and format_12_cmap, and
free don't leak the struct.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Add a few missing chars to pango_is_zero_width
See merge request GNOME/pango!368
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The documentation for this function states that all
bidi control chars are zero width, but it was missing
the Isolate ones. Add them.
Updated tests included.
|