Metadata
- Source
- FLUID-6655
- Type
- Improvement
- Priority
- Major
- Status
- Open
- Resolution
- N/A
- Assignee
- N/A
- Reporter
- Justin Obara
- Created
2021-07-06T12:55:39.440-0400 - Updated
2022-11-17T12:56:49.728-0500 - Versions
- N/A
- Fixed Versions
- N/A
- Component
-
- Prefs Framework
- UIEnhancer
- UI Options
Description
The current design for the text style preference is to provide a list of fonts to choose to apply to the page. I believe these were initially picked from common system fonts but they don't always work across platform.
As a potential redesign, we could have something like the following:
- default ( uses the font specified by the site )
- system (uses the default system font e.g. system-ui )
- serif
- sans serif
- OpenDyslexic
This would hopefully allow for easier implementation both for developing UIO and for those integrating. And allow for things like font pairings to emphasize portions of the content when using the serif and sans serif options.
Comments
-
Caren Watkins commented
2021-07-30T12:09:54.032-0400 I think a positive to this idea is the potential for more personalized choice. A challenge is meaning of these more general terms. If Serif and Sans were rendered in clearly Serif and Sans fonts that could help. Default and System could be explored by a user by interacting with them but the meaning–info you have in brackets–would not be clear.
- default ( uses the font specified by the site )
- system (uses the default system font e.g. system-ui )
- for those who know how to change the system font to their preferred font–would default (because they've over ridden the site specified font) and system choices be the same font for them?
- serif
- Would the word SERIF be visually rendered as a serif in the menu?
- when chosen does the UIO have a list of preferred serifs that it will ask the system to find? For example, first Georgia, second Times, if no luck any serif available.
- sans serif
- same questions as above
- OpenDyslexic
-
Justin Obara commented
2021-08-03T08:29:54.609-0400 Hi Caren Watkins, thanks for the feedback.
I don't know if we'll be able to render the options in the same/similar font to what will be applied. We've tried that in the past with limited success. It worked in some browsers but not others. We'd have to see what's available with current CSS, or possibly a custom select box.
Regarding system-ui, it should pick up the OS's font. I don't know if that just means it's default option, or if it means the current. I'd assume the latter, but we'd have to do a bit of testing to determine. If the user had changed their browser's default style sheet, it may be that the site is already presented with whatever is used by the system, this might also be the case if the site itself used the same font.
For the serif and sans-serif options we would probably either just use the generic font-family (serif, sans-serif, ui-serif, ui-sans-serif) but could also pre-specify some. We're also probably going to move to an option where the site integrator will have more choice over what those actually become (see: FLUID-6605). So the user would specify serif, but the site integrator might have different fonts specified to actually enact that preference. This could also be used to provide different font pairings for headers vs content, although they'd both be in the sans-serif or serif. In theory with an approach such as in FLUID-6605 the integrator would have more freedom for how all of the options are actually enacted.
-
Justin Obara commented
2021-08-03T09:05:52.232-0400 Here's a codepen example to test out system-ui, serif, and sans-serif across platforms.
-
Justin Obara commented
2022-11-17T12:56:27.059-0500 Added a new issue for system-ui, FLUID-6754.