mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
* lyx_2_0.py: fix revert_xetex method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37570 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2ce1e6783a
commit
099394c230
@ -214,7 +214,7 @@ def revert_xetex(document):
|
||||
|
||||
# 2.) check font settings
|
||||
# defaults
|
||||
roman = sans = typew = default
|
||||
roman = sans = typew = "default"
|
||||
osf = False
|
||||
sf_scale = tt_scale = 100.0
|
||||
|
||||
@ -288,11 +288,11 @@ def revert_xetex(document):
|
||||
sf += 'Scale=' + str(sf_scale / 100.0) + ','
|
||||
sf += 'Mapping=tex-text]{' + sans + '}'
|
||||
pretext.append(sf)
|
||||
if typewriter != "default":
|
||||
if typew != "default":
|
||||
tw = '\\setmonofont'
|
||||
if tt_scale != 100.0:
|
||||
tw += '[Scale=' + str(tt_scale / 100.0) + ']'
|
||||
tw += '{' + typewriter + '}'
|
||||
tw += '{' + typew + '}'
|
||||
pretext.append(tw)
|
||||
if osf:
|
||||
pretext.append('\\defaultfontfeatures{Numbers=OldStyle}')
|
||||
|
Loading…
Reference in New Issue
Block a user