align isPowerlineGlyph across renderers (#3743)

This commit is contained in:
Megan Rogge
2022-04-20 14:25:46 -07:00
committed by GitHub
parent 38f0dd9be2
commit da33543ffb
4 changed files with 15 additions and 22 deletions
+6
View File
@@ -9,3 +9,9 @@ export function throwIfFalsy<T>(value: T | undefined | null): T {
}
return value;
}
export function isPowerlineGlyph(codepoint: number): boolean {
// This range was established via
// https://apw-bash-settings.readthedocs.io/en/latest/fontpatching.html
return 0xE000 <= codepoint && codepoint <= 0xF8FF;
}