MCPcopy Create free account
hub / github.com/fontsource/fontsource / getPreviewText

Function getPreviewText

website/app/utils/language/language.ts:1–665  ·  view source on GitHub ↗
(subset: string, id?: string)

Source from the content-addressed store, hash-verified

1export const getPreviewText = (subset: string, id?: string) => {
2 switch (id) {
3 case 'dseg-weather': {
4 return '0123456789 ABC';
5 }
6 case 'dseg7-segg-chan':
7 case 'dseg7-segg-chan-mini': {
8 return '0123456789';
9 }
10
11 case 'material-icons':
12 case 'material-icons-outlined':
13 case 'material-icons-round':
14 case 'material-icons-sharp':
15 case 'material-icons-two-tone': {
16 return 'photo_camerathumb_upassignmentcreate_new_folderinsert_invitationdraftscredit_cardtimercheck_boxclose';
17 }
18
19 case 'material-symbols-outlined':
20 case 'material-symbols-rounded':
21 case 'material-symbols-sharp': {
22 return 'searchsettingshomepersonaddshopping_cartcheck_circlefavoritelogouttrophy';
23 }
24
25 case 'noto-sans-symbols': {
26 return '⛾⛿☯☸ ⛩⛰⛱⛴⛷⛸ ♸⚥☊☍☓☤ 🄰🄱🆈🆉 ⚖♇♪♬';
27 }
28
29 case 'noto-sans-symbols-2': {
30 return '⌚✋⯧☔🛪🏟⛅🞽🕖 🚲🡽🨄 🡢🡱🏠💻🐿👁📽';
31 }
32
33 case 'noto-sans-math': {
34 return '𝞉𝞩𝟃𞻰⟥⦀⦁ 𝚢𝚣𝚤𝖿𝗀𝗁𝗂 𝑻𝑼𝑽𝗔𝗕𝗖𝗗 ϑϕϰϱϵℊℎ ⊰⊱⊲⊳⊴⊵⫕ 𞹴𞹵𞹶𞹷𞹹𞹺𞹻';
35 }
36
37 case 'yakuhanjp':
38 case 'yakuhanrp': {
39 return '、。!?〈〉《》「」『』【】〔〕・():;[]{}';
40 }
41
42 case 'yakuhanjps':
43 case 'yakuhanrps': {
44 return '〈〉《》「」『』【】〔〕()[]{}';
45 }
46
47 case 'yakuhanmp': {
48 return '、。!?《》「」『』【】〔〕・():;[]{}';
49 }
50 case 'yakuhanmps': {
51 return '《》「」『』【】〔〕()[]{}';
52 }
53
54 default: {
55 break;
56 }
57 }
58
59 switch (subset) {
60 case 'latin':

Callers 3

Hits.tsxFile · 0.90
TextAreaFunction · 0.90
FontFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected