diff options
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/index.ts b/js/src/index.ts index 9b9b052..f1b27d3 100644 --- a/js/src/index.ts +++ b/js/src/index.ts @@ -28,7 +28,7 @@ export function dec(typeface: string, dec: string): UnicodeScalarValue | undefin } export function hex(typeface: string, hex: string): UnicodeScalarValue | undefined { - return dingbatsByCodePoint[typeface + "_" + parseInt(hex, 16)]; + return codePoint(typeface, parseInt(hex, 16)); } function fromCodePointPolyfill(codePoint: number) { |
