Spaces:
Runtime error
Runtime error
Download streaming-react-app/src/react-xr/supportedCharSet.ts from MACXXX/seamless-streaming: direct link, hf CLI and curl.
- Browser
- Download file 580 Bytes
-
https://huggingface.co/spaces/MACXXX/seamless-streaming/resolve/main/streaming-react-app/src/react-xr/supportedCharSet.ts
- Command line
-
hf download hf://spaces/MACXXX/seamless-streaming/streaming-react-app/src/react-xr/supportedCharSet.ts
-
curl -L -o supportedCharSet.ts https://huggingface.co/spaces/MACXXX/seamless-streaming/resolve/main/streaming-react-app/src/react-xr/supportedCharSet.ts
580 Bytes
| import robotoFontFamilyJson from '../assets/RobotoMono-Regular-msdf.json?url'; | |
| async function fetchSupportedCharSet(): Promise<Set<string>> { | |
| try { | |
| const response = await fetch(robotoFontFamilyJson); | |
| const fontFamily = await response.json(); | |
| return new Set(fontFamily.info.charset); | |
| } catch (e) { | |
| console.error('Failed to fetch supported XR charset', e); | |
| return new Set(); | |
| } | |
| } | |
| let charSet = new Set<string>(); | |
| fetchSupportedCharSet().then((result) => (charSet = result)); | |
| export default function supportedCharSet(): Set<string> { | |
| return charSet; | |
| } | |