Selecting system fonts depending on some features

Scott Kostyshak skostysh at lyx.org
Sat May 2 00:35:17 UTC 2020


On Fri, May 01, 2020 at 04:10:06PM +0200, Jürgen Spitzmüller wrote:
> Am Freitag, den 01.05.2020, 16:08 +0200 schrieb Kornel Benko:
> > No GUI at the moment. (I am not good in programming GUI, as you
> > probably know)
> > 
> > For a tester it is sometimes important to get a useful subset of the
> > list
> > provided by lyx.
> > like get a list of fonts with Hebrew and German.
> 
> I see. Makes sense (for this purpose).

I can take care of the GUI work if we decide to go forward with this and
we decide on the interface. Just to reiterate, I don't know when I would
be able to get to this, probably not until after 2.4.0 is released.
However, it might make sense to have the discussion now on the plan. And
if anyone wants to work on it before I, they would be very welcome.

How do others view this feature being useful? As mentioned on the trac
ticket [1], I think it would be nice to have a checkbox labeled
something like "Limit fonts to those that support languages in current
document". Do others agree? Should this box be checked by default?

As for the implementation, I can look into QFontDatabase and see how it
compares to the output from Kornel's script. If it is reliable, I can
understand Jürgen's point that there are advantages to that. On the
other hand, if the listFontWithLang.pl script is more reliable, then I
can port it to Python. If we go that route, I suppose we have to
generate the information during configuration.

Any thoughts on the above?

Scott


[1] https://www.lyx.org/trac/ticket/11849#comment:3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200501/ac1df4e9/attachment.asc>


More information about the lyx-devel mailing list