OSDN Git Service

docs: conf.py: only use CJK if the font is available
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Sun, 14 Jul 2019 10:16:18 +0000 (07:16 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 17 Jul 2019 09:57:51 +0000 (06:57 -0300)
commite0de2b59e243c88296fc983e32dd6484365e87a7
tree44d820b26de6326c6861ccbb7b8e898eb83ea6b1
parent24889dad3d9e7c9e22f5be46d9ae7b8ca92cc1cc
docs: conf.py: only use CJK if the font is available

If we try to build a book with asian characters with XeLaTeX
and the font is not available, it will produce an error.

So, instead, add a logic at conf.py to detect if the proper
font is installed.

This will avoid an error while building the document, although
the result may not be readable.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Documentation/conf.py