mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 02:54:32 +08:00
788d28a257
Noto CJK fonts don't provide italic shapes. The AutoFakeSlant option of fontspec and xeCJK packages can be used as a workaround. Signed-off-by: Akira Yokosawa <akiyks@gmail.com> Link: https://lore.kernel.org/r/502335cc-9a95-3c2a-7744-6cc56ecaf628@gmail.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
13 lines
345 B
Python
13 lines
345 B
Python
# -*- coding: utf-8 -*-
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# -- Additinal options for LaTeX output ----------------------------------
|
|
# font config for ascii-art alignment
|
|
|
|
latex_elements['preamble'] += '''
|
|
\\IfFontExistsTF{Noto Sans CJK SC}{
|
|
% For CJK ascii-art alignment
|
|
\\setmonofont{Noto Sans Mono CJK SC}[AutoFakeSlant]
|
|
}{}
|
|
'''
|