Allow toggling use of additional fallback fonts#6095
Allow toggling use of additional fallback fonts#6095poire-z merged 4 commits intokoreader:masterfrom
Conversation
|
A rare bird will reach the last page of the fonts list... |
| self.ui:handleEvent(Event:new("UpdatePos")) | ||
| end, | ||
| help_text = T(_([[ | ||
| Enable additional fallback fonts, for the most complete scripts and languages coverage. |
There was a problem hiding this comment.
script and language
(Yeah, I know ;p).
| end, | ||
| help_text = T(_([[ | ||
| Enable additional fallback fonts, for the most complete scripts and languages coverage. | ||
| Complementary fonts, used in this order: |
There was a problem hiding this comment.
Additional?
(Complementary is... clunky in English, possibly because it's so close to complimentary, which is another thing entirely ^^)
There was a problem hiding this comment.
As we have "additional" in the first sentence, may be for the 2nd sentence just:
These fonts will be used in this order:
There was a problem hiding this comment.
I guess your warning applies to the menu too:
Complementary standard fallback fonts
Suggestion for less heavy wording for this one? :)
There was a problem hiding this comment.
Recommended maybe? Not such a fan of that either, but it mostly works ;p.
| %1 | ||
|
|
||
| The fallback font set with a long-press on a font name will be used before these. | ||
| Note that the first font of the whole fallback fonts set is still used when this option is disabled.]]), |
There was a problem hiding this comment.
Does this refer to this actual list, or the the "old" fallback font?
(In which case, it's potentially a duplicate if your global fallback is also set to Noto Sans CJK SC?)
There was a problem hiding this comment.
(Not sure I understand your question :/ (the "old" fallback font?))
I tried to summarize the following with these 2 sentences :)
In koreader/crengine#339, I explained a bit how that works:
Users will still be able to only set one fallback font, which will be put at start of this list. If the font is already in that list, it will be moved first. This allows some bit of customisation, while always providing large coverage.
A user can set one fallback font. If not in the list: added at top. If in the list, moved to top.
So, if you set the user fallback to NotoSansCJK, this list does not change, it's the default behaviour :)
Dunno if we need to explain all this in that help_text - users shouldn't much care about duplicates.
(The only case where a duplicate/double rendering/drawing might happen is when you set as the main font one of the fonts in that list.)
There was a problem hiding this comment.
I vastly prefer that quote from the second sentence used here, FWIW.
There was a problem hiding this comment.
i.e., keep the first sentence, but replace the second with something inspired from that like If that font happens to be part of this list already, it'll still be tried first.
OK, going to make it proper, which means bringing I guess I can add to it the undocumented and hidden |
|
No more comment about this one? |
|
|
||
| %1 | ||
|
|
||
| You can set a prefered fallback font with a long-press on a font name, and it will be used before these. |
| }) | ||
|
|
||
| table.insert(settings_table, { | ||
| text = _("Generate font test HTML document"), |
There was a problem hiding this comment.
I'd just leave it out, but otherwise I think HTML font test document sounds better.
| text = _("Generate font test HTML document"), | |
| text = _("Generate font test document"), |
Frenzie
left a comment
There was a problem hiding this comment.
Nothing else jumps out but I only looked through it quickly.
|
Probably some bits in the shipped sample text that could be made less clumsy - but I guess we can fix that later (when you get a chance to read it on your device :) |





Allow toggling the use of multiple fallback fonts (#6090).
Might be handly when testing new fonts or choosing the first fallback font - when you really want to see what a font supports.
I've put it at the bottom of the font menu (if will be alone, the last one is optionnal):

Dunno if it's better if it was at start (with the Font settings that is not shown on most devices - or inside it, which would made this menu shown on all devices, so with a single item on most devices):

InfoMessage shown on long-press (for rewording suggestions):
This change is