Am Sonntag, den 14.07.2019, 21:33 +0200 schrieb Kornel Benko:
> To test:
> 1.) Open new file
> 2.) Select sf font IBM Plex Sans
> 3.) Add some option e.g. "proportional" (I know this is invalid)
> 4.) Add scale factor 50%
> 
> In the preamble we have now
> 
>         \font_sans "IBMPlexSans" "default"
>         \font_sf_scale 50 100
>         \font_sans_opts "proportional"
> 
> This is OK.
> Now export to 2.3.x. The result in the preamble is
>         % Added by lyx2lyx
>         \usepackage[proportional,scale=0.50]{plex-sans}
> 
> This looks OK
> 
> Now reimport this back, we have lost setting for \font_sans_opts.

Here, the code is kept in preamble (with no font added to the GUI),
which is expected, since the conversion of this font is done before the
file format that adds the extra options. And in this case, the preamble
is maintained. So another conversion would be needed.

Furthermore, however, extra option handling is not yet implemented in
the conversion routine, which then would need to detect the current
conversion format. This is not too difficult to implement, but a
problem I don't know how to handle is the default option that is used
for font name detection (fm.getfontname(pkg, options)). At conversion
time, we do not know if there is a default option, and which. So we
cannot differentiate the default option from other options easily.

Jürgen

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to