Bug 12793
Summary: | Feature Request: Need a method for font styles in editable text to have fallback fonts | ||
---|---|---|---|
Product: | WebKit | Reporter: | Dan Wood <dwood> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Enhancement | CC: | ahmad.saleem792, rniwa, wenson_hsieh |
Priority: | P2 | ||
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.4 |
Dan Wood
Currently when fonts are set in editable text, just that font face is set. However, good HTML practice involves specifying one or more fallback fonts, with the last one being a generic name like 'serif' and 'sans-serif'.
I would suggest a couple of options: A delegate method where the controller can specify a list of font faces to use when a particular font face is requested -- this will provide quite a bit of flexibility. Another approach would be to have the traits of the font examined to determine automatically if it's serif, sans-serif, monospace, or fantasy as a fallback.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
@rniwa - Do we need to track this as feature request or we can close this? Thanks!