diff --git a/bindep.txt b/bindep.txt index e521bd189c..282f0f80ef 100644 --- a/bindep.txt +++ b/bindep.txt @@ -1,6 +1,8 @@ # This is a cross-platform list tracking distribution packages needed by tests; # see https://docs.openstack.org/infra/bindep/ for additional information. +fonts-lmodern [platform:dpkg] +fonts-liberation [platform:dpkg] fonts-nanum [platform:dpkg] fonts-takao [platform:dpkg] freetype-devel [platform:rpm] @@ -22,4 +24,5 @@ zlib1g-dev [platform:dpkg] inkscape texlive-latex-base [platform:dpkg] texlive-latex-extra [platform:dpkg] +texlive-xetex [platform:dpkg] texlive-fonts-recommended [platform:dpkg] diff --git a/doc/admin-guide/source/conf.py b/doc/admin-guide/source/conf.py index ca31b231c7..96efbdd937 100644 --- a/doc/admin-guide/source/conf.py +++ b/doc/admin-guide/source/conf.py @@ -214,10 +214,21 @@ linkcheck_ignore = [r'https://127.0.0.1', # -- 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', diff --git a/doc/arch-design-draft/source/conf.py b/doc/arch-design-draft/source/conf.py index e89c1a7b25..e2393c066f 100644 --- a/doc/arch-design-draft/source/conf.py +++ b/doc/arch-design-draft/source/conf.py @@ -208,10 +208,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', diff --git a/doc/arch-design/source/conf.py b/doc/arch-design/source/conf.py index 645017e4d9..256300a6d2 100644 --- a/doc/arch-design/source/conf.py +++ b/doc/arch-design/source/conf.py @@ -208,10 +208,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', diff --git a/doc/cli-reference/source/conf.py b/doc/cli-reference/source/conf.py index 5e620e22b6..23d979c7c1 100644 --- a/doc/cli-reference/source/conf.py +++ b/doc/cli-reference/source/conf.py @@ -218,10 +218,21 @@ html_use_smartypants = 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', diff --git a/doc/config-reference/source/conf.py b/doc/config-reference/source/conf.py index 15972990bd..a84ad11ab0 100644 --- a/doc/config-reference/source/conf.py +++ b/doc/config-reference/source/conf.py @@ -214,10 +214,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', diff --git a/doc/contributor-guide/source/conf.py b/doc/contributor-guide/source/conf.py index 88795af0df..794423b4ee 100644 --- a/doc/contributor-guide/source/conf.py +++ b/doc/contributor-guide/source/conf.py @@ -217,10 +217,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', diff --git a/doc/ha-guide/source/conf.py b/doc/ha-guide/source/conf.py index 4c40be5940..a1808bb000 100644 --- a/doc/ha-guide/source/conf.py +++ b/doc/ha-guide/source/conf.py @@ -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', diff --git a/doc/image-guide/source/conf.py b/doc/image-guide/source/conf.py index d2cc757b64..6990f14b06 100644 --- a/doc/image-guide/source/conf.py +++ b/doc/image-guide/source/conf.py @@ -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', diff --git a/doc/install-guide-debconf/source/conf.py b/doc/install-guide-debconf/source/conf.py index 4feea25b78..dfdea1d803 100644 --- a/doc/install-guide-debconf/source/conf.py +++ b/doc/install-guide-debconf/source/conf.py @@ -223,10 +223,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', diff --git a/doc/install-guide/source/conf.py b/doc/install-guide/source/conf.py index 8d2432db0d..144ef11c80 100644 --- a/doc/install-guide/source/conf.py +++ b/doc/install-guide/source/conf.py @@ -223,10 +223,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', diff --git a/doc/networking-guide/source/conf.py b/doc/networking-guide/source/conf.py index 32b3476cd4..af9f58c2f4 100644 --- a/doc/networking-guide/source/conf.py +++ b/doc/networking-guide/source/conf.py @@ -208,10 +208,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', diff --git a/doc/ops-guide/source/conf.py b/doc/ops-guide/source/conf.py index 6bf86b87a8..9ad35d7858 100644 --- a/doc/ops-guide/source/conf.py +++ b/doc/ops-guide/source/conf.py @@ -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', diff --git a/doc/user-guide/source/conf.py b/doc/user-guide/source/conf.py index 196a0ba9b5..ea03548fc2 100644 --- a/doc/user-guide/source/conf.py +++ b/doc/user-guide/source/conf.py @@ -214,10 +214,21 @@ linkcheck_ignore = [r'https://build.opensuse.org'] # -- 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',