Skip to content

Commit

Permalink
fix: revert rm comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanahiro committed Jan 29, 2025
1 parent 8ca2ce9 commit 3ebe9f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/render/glyph_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ export class GlyphManager {
}

_doesCharSupportLocalGlyph(id: number): boolean {
// The CJK Unified Ideographs blocks and Hangul Syllables blocks are
// spread across many glyph PBFs and are typically accessed very
// randomly. Preferring local rendering for these blocks reduces
// wasteful bandwidth consumption. For visual consistency within CJKV
// text, also include any other CJKV or siniform ideograph or hangul,
// hiragana, or katakana character.
return !!this.localIdeographFontFamily &&
(/\p{Ideo}|\p{sc=Hang}|\p{sc=Hira}|\p{sc=Kana}/u.test(String.fromCodePoint(id)) ||
(

Check warning on line 131 in src/render/glyph_manager.ts

View check run for this annotation

Codecov / codecov/patch

src/render/glyph_manager.ts#L131

Added line #L131 was not covered by tests
Expand Down

0 comments on commit 3ebe9f6

Please sign in to comment.