From f2c669264288a04a6429fd2deb210e112eaee023 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 16 Jan 2021 16:04:16 +0000 Subject: Delegate to codePoint in hex --- js/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3