diff options
| author | Michael Williamson <mike@zwobble.org> | 2021-01-16 16:04:16 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2021-01-16 16:04:16 +0000 |
| commit | f2c669264288a04a6429fd2deb210e112eaee023 (patch) | |
| tree | a34b33a8ab18a19e29dac67883ddaed433d1ecab | |
| parent | ad89aec533a2b5fdfc67ee02e729e2bbb82e05b3 (diff) | |
Delegate to codePoint in hex
| -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) { |
