* 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:
Jürgen Spitzmüller 2011-02-09 09:26:33 +00:00
parent 2ce1e6783a
commit 099394c230

View File

@ -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}')