LibGfx: Add a comment to Font::try_load_from_offset()

See #17189 -- this confused me for a bit.
This commit is contained in:
Nico Weber 2024-02-06 21:29:21 -05:00 committed by Sam Atkins
parent 21ffb118af
commit d3c94d8436
Notes: sideshowbarker 2024-07-16 22:18:54 +09:00

View File

@ -258,6 +258,7 @@ ErrorOr<NonnullRefPtr<Font>> Font::try_load_from_offset(ReadonlyBytes buffer, u3
}
} else if (platform.value() == Cmap::Subtable::Platform::Macintosh) {
cmap.set_active_index(i);
// Intentionally no `break` so that Windows (value 3) wins over Macintosh (value 1).
}
}