[PDF] Liberation font support using xelatex
- To support fonts to PDFs, using xelatex is the preferred way in Sphinx: http://www.sphinx-doc.org/en/stable/latex.html - Applies Liberation as default English font : http://lists.openstack.org/pipermail/openstack-docs/2017-February/009606.html : http://lists.openstack.org/pipermail/openstack-docs/2017-February/009616.html : http://lists.openstack.org/pipermail/openstack-docs/2017-February/009623.html Change-Id: I91cb6260e14ae5a22e264cc0bf26731df54a8945 Implements: blueprint build-pdf-from-rst-guides
This commit is contained in:
@@ -209,10 +209,21 @@ html_copy_source = False
|
||||
|
||||
# -- Options for LaTeX output ---------------------------------------------
|
||||
|
||||
latex_engine = 'xelatex'
|
||||
|
||||
latex_elements = {
|
||||
# The paper size ('letterpaper' or 'a4paper').
|
||||
# 'papersize': 'letterpaper',
|
||||
|
||||
# set font (TODO: different fonts for translated PDF document builds)
|
||||
'fontenc': '\\usepackage{fontspec}',
|
||||
'fontpkg': '''\
|
||||
\defaultfontfeatures{Scale=MatchLowercase}
|
||||
\setmainfont{Liberation Serif}
|
||||
\setsansfont{Liberation Sans}
|
||||
\setmonofont[SmallCapsFont={Liberation Mono}]{Liberation Mono}
|
||||
''',
|
||||
|
||||
# The font size ('10pt', '11pt' or '12pt').
|
||||
# 'pointsize': '10pt',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user