mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-08 22:54:36 +00:00
[ft] Fix compiler warnings
Some checks failed
arm / arm-none-eabi (push) Waiting to run
configs-ci / build (push) Waiting to run
fontations / build (push) Waiting to run
linux-ci / build (push) Waiting to run
macos-ci / build (push) Waiting to run
msvc / msvc-2019-amd64 (push) Waiting to run
msvc / msvc-2019-x86 (push) Waiting to run
msys2 / CLANG64 (push) Waiting to run
msys2 / MINGW32 (push) Waiting to run
msys2 / MINGW64 (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Failing after 5s
Some checks failed
arm / arm-none-eabi (push) Waiting to run
configs-ci / build (push) Waiting to run
fontations / build (push) Waiting to run
linux-ci / build (push) Waiting to run
macos-ci / build (push) Waiting to run
msvc / msvc-2019-amd64 (push) Waiting to run
msvc / msvc-2019-x86 (push) Waiting to run
msys2 / CLANG64 (push) Waiting to run
msys2 / MINGW32 (push) Waiting to run
msys2 / MINGW64 (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Failing after 5s
This commit is contained in:
parent
bee08cf290
commit
6acb2942e8
1 changed files with 4 additions and 4 deletions
|
@ -667,10 +667,10 @@ hb_ft_get_glyph_extents (hb_font_t *font,
|
|||
float x2 = x1 + x_mult * ft_face->glyph->metrics.width;
|
||||
float y2 = y1 + y_mult * -ft_face->glyph->metrics.height;
|
||||
|
||||
extents->x_bearing = round (x1);
|
||||
extents->y_bearing = round (y1);
|
||||
extents->width = round (x2) - extents->x_bearing;
|
||||
extents->height = round (y2) - extents->y_bearing;
|
||||
extents->x_bearing = roundf (x1);
|
||||
extents->y_bearing = roundf (y1);
|
||||
extents->width = roundf (x2) - extents->x_bearing;
|
||||
extents->height = roundf (y2) - extents->y_bearing;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue