https://bugs.documentfoundation.org/show_bug.cgi?id=151122

--- Comment #47 from Eyal Rozenberg <[email protected]> ---
(In reply to Manu from comment #46)
> Do you

I'm guessing you mean me, since I reported the bug, but it's good to always
mention the name since other people comment as wlll.

> Do you confirm each time the user select a new language, then the font list
> must be reanalyzed and repopulated? 

No, it doesn't. The analysis and partition of the list only happens once (once
per LO session or even less than that if we persist the partition). Also, to
the extent that we rely on the font itself to tell us which language it
supports, there's no analysis to begin with.

As for the re-population of the GUI control on the toolbar or sidebar - that
happens now whenever one switches language group; I presume our code clears the
control, then loads a list from somewhere in memory.

> At this time of the discussion, I don't understand what is a "relax
> heuristic"...

This will be different for different languages. But the general point is: It is
not very difficult (though not entirely trivial either) to devise a criterion
for a font _completely_ covering a language's glyphs. Just mark all the glyphs
that can be used in that language, and if the font has them, then it's good.
But - many fonts are pretty usable, but don't meet this criteria. You gave the
example for French, of fonts without accented majuscules. So, either the
developers, or preferably, the French language community, needs to make the
call whether to include such fonts in the list of fonts-for-French. And similar
decisions need to be made for other languages. Beyond that, there's the
question of individual missing glyphs. Suppose a font for German has everything
except for, say, the glyph for double-s. And let's even say it exists for
regular weight, but missing for bold. Do we say this typeface doesn't support
German? Maybe. We need to set some policy.

While we don't have a policy for a language, we should fall back on font
self-reporting or per-language Unicode ranges with strict coverage requirement.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to