[ios,macos] Darwin implementation of a CoreText-based LocalGlyphRasterizer.
- Changing font weight does not currently appear to be working. - Glyph metric extraction code not working; currently unused.
This commit is contained in:
@@ -392,6 +392,11 @@ bool allowsIdeographicBreaking(char16_t chr) {
|
||||
// || isInCJKCompatibilityIdeographsSupplement(chr));
|
||||
}
|
||||
|
||||
bool allowsFixedWidthGlyphGeneration(char16_t chr) {
|
||||
// Mirrors conservative set of characters used in glyph_manager.js/_tinySDF
|
||||
return isInCJKUnifiedIdeographs(chr) || isInHangulSyllables(chr);
|
||||
}
|
||||
|
||||
bool allowsVerticalWritingMode(const std::u16string& string) {
|
||||
for (char32_t chr : string) {
|
||||
if (hasUprightVerticalOrientation(chr)) {
|
||||
|
||||
Reference in New Issue
Block a user