diff --git a/apps/readest-app/src/services/constants.ts b/apps/readest-app/src/services/constants.ts index b90b1f97..e7747504 100644 --- a/apps/readest-app/src/services/constants.ts +++ b/apps/readest-app/src/services/constants.ts @@ -247,6 +247,7 @@ export const SERIF_FONTS = [ 'Merriweather', 'Roboto Slab', 'Vollkorn', + 'PT Serif', 'Georgia', 'Times New Roman', ]; @@ -264,9 +265,15 @@ export const CJK_SERIF_FONTS = [ export const CJK_SANS_SERIF_FONTS = ['Noto Sans SC', 'Noto Sans TC']; -export const SANS_SERIF_FONTS = ['Roboto', 'Noto Sans', 'Open Sans', 'Helvetica']; +export const SANS_SERIF_FONTS = ['Roboto', 'Noto Sans', 'Open Sans', 'PT Sans', 'Helvetica']; -export const MONOSPACE_FONTS = ['Fira Code', 'Lucida Console', 'Consolas', 'Courier New']; +export const MONOSPACE_FONTS = [ + 'Fira Code', + 'Consolas', + 'Courier New', + 'Lucida Console', + 'PT Mono', +]; export const FALLBACK_FONTS = ['MiSans L3']; diff --git a/apps/readest-app/src/styles/fonts.ts b/apps/readest-app/src/styles/fonts.ts index 970268da..db833321 100644 --- a/apps/readest-app/src/styles/fonts.ts +++ b/apps/readest-app/src/styles/fonts.ts @@ -14,6 +14,9 @@ const basicGoogleFonts = [ { family: 'Roboto', weights: 'ital,wght@0,100..900;1,100..900' }, { family: 'Roboto Slab', weights: 'ital,wght@0,100..900;1,100..900' }, { family: 'Vollkorn', weights: 'ital,wght@0,400..900;1,400..900' }, + { family: 'PT Sans', weights: 'ital,wght@0,400;0,700;1,400;1,700' }, + { family: 'PT Serif', weights: 'ital,wght@0,400;0,700;1,400;1,700' }, + { family: 'PT Mono', weights: '' }, ]; const cjkGoogleFonts = [