mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-17 15:02:24 +00:00
LibGfx: Add a comment to Font::try_load_from_offset()
See #17189 -- this confused me for a bit.
This commit is contained in:
parent
21ffb118af
commit
d3c94d8436
Notes:
sideshowbarker
2024-07-16 22:18:54 +09:00
Author: https://github.com/nico
Commit: d3c94d8436
Pull-request: https://github.com/SerenityOS/serenity/pull/23102
1 changed files with 1 additions and 0 deletions
|
@ -258,6 +258,7 @@ ErrorOr<NonnullRefPtr<Font>> Font::try_load_from_offset(ReadonlyBytes buffer, u3
|
||||||
}
|
}
|
||||||
} else if (platform.value() == Cmap::Subtable::Platform::Macintosh) {
|
} else if (platform.value() == Cmap::Subtable::Platform::Macintosh) {
|
||||||
cmap.set_active_index(i);
|
cmap.set_active_index(i);
|
||||||
|
// Intentionally no `break` so that Windows (value 3) wins over Macintosh (value 1).
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue