mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 05:05:32 +03:00
LibPDF/CFF: Use offset in accented_character() data
Without this, the dieresis above an a is all the way to the left instead of over the letter.
This commit is contained in:
parent
12859dfde5
commit
020c00ede2
Notes:
sideshowbarker
2024-07-17 02:42:21 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/020c00ede2 Pull-request: https://github.com/SerenityOS/serenity/pull/23299 Reviewed-by: https://github.com/gmta ✅
@ -127,8 +127,10 @@ void Type1FontProgram::consolidate_glyphs()
|
|||||||
auto glyph_path = maybe_base_glyph.value().path();
|
auto glyph_path = maybe_base_glyph.value().path();
|
||||||
auto maybe_accent_glyph = m_glyph_map.get(glyph.accented_character().accent_character);
|
auto maybe_accent_glyph = m_glyph_map.get(glyph.accented_character().accent_character);
|
||||||
if (maybe_accent_glyph.has_value()) {
|
if (maybe_accent_glyph.has_value()) {
|
||||||
|
auto origin = glyph.accented_character().accent_origin;
|
||||||
auto path = maybe_accent_glyph.value().path();
|
auto path = maybe_accent_glyph.value().path();
|
||||||
glyph_path.append_path(move(path));
|
Gfx::AffineTransform translation { 1, 0, 0, 1, origin.x(), origin.y() };
|
||||||
|
glyph_path.append_path(path.copy_transformed(translation));
|
||||||
}
|
}
|
||||||
glyph.path() = glyph_path;
|
glyph.path() = glyph_path;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user