@preply/ds-rn-fonts
v14.3.1
Published
Keywords
Readme
@preply/ds-rn-fonts
Pre-built, merged font files for the Tokyo UI typefaces on React Native.
This package ships the .ttf files (in dist/) that the React Native apps load
at runtime. Each file is a single font that has been stitched together from
several source fonts so that one font family can render Latin and Greek,
Cyrillic, Thai and Arabic.
Using the Design System in your application or library?
Follow the instructions in @preply/ds-workspace.
Output fonts
Three families are produced, each in several weights/styles:
NotoSans-*— Noto Sans + Noto Sans Thai Looped + Noto Sans ArabicFigtree-NotoSans-*— Figtree + Noto Sans (all variations)Platform-NotoSans-*— Platform + Noto Sans (all variations)
Development
pnpm build— builds every font intodist/.pnpm clean— deletes thedist/folder.
To change which fonts or weights are produced, edit the FONTS registry and
FONT_CONFIGS list in scripts/build.mts. Each FONT_CONFIGS entry declares
the output family, weight and style; the build uses those fields to generate the
.ttf filename and the native font metadata used as React Native fontFamily
values.
