Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2312523pxt; Sun, 8 Aug 2021 19:28:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpYLV1+EBc48ZWST8oZzRQ6dJbH7fJeIatgr/PohuYFgXzaQIBftkwIPTbQdo/rDa/42G3 X-Received: by 2002:a02:c6d5:: with SMTP id r21mr20533806jan.71.1628476103858; Sun, 08 Aug 2021 19:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628476103; cv=none; d=google.com; s=arc-20160816; b=ANBMsBfYTtJ4dp4TnG3rCvJSHQRO6a0M5NEu1N9YaBfLLTOX9LyRjaESDrymTyxJFi ZC3feKd0tJJMcyfRNdGonoaYhdZyAAEufYMR2aUP6B90qFhDeJdsYM4u7iN9LvSuGIeP mM2iRtGpCO22MYWamqGAAcn6VQ+pLzCHAwp9w3sSPchkDkfYMwXNTCzhzxla+pRfjBcD pU4R2ycJFVXijQfBuMYjBPJHXdIPvpig+r9RQol86kfkIA2qxiGckl/3bn7KRdfl0KOg 7JuCg8ePEJRsb2Ag0gADavHPZfkhyVDtK+lShS84Kz/SUg0Z5hR1n/q3bx2jEwJbdW9E PCtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=c4zBEXHSnnZcsQHQ8z4JVrNIpxRpFJ4lGSST5YzfDQs=; b=vYTl9tfdxAA2z8b5BGCx8cB1NtcjMjRWZ/o+wpueNkUNHgIUsBY3JcTHhCVmDI/LMs GCYnlzFH26hGPzu9OFpPrqLTRRwK1D4YkG6h6M9tsjEf8eDseTsotHV3QyEsagj5zXrO dR6sJFne51jfDqKOL8SR63482zvK/JozXh4O2cqszmUUVqK8RIHCkI75HIFAji8YXqvU 1LumU9YuZvTehlod9ZGduLvnA2C/mWjDmnrIxzRVV6O/HdNUFeaZE4nT1X10YP1/i0ob DdjVsBfSLCgEnf9MqLqkbcJhLWgxJkobkEzGwSHQeL3NXj8PINlnIUWYp8A2OGk3Be+r qiZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="t+DkEpL/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f22si17335796jam.121.2021.08.08.19.27.59; Sun, 08 Aug 2021 19:28:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="t+DkEpL/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232169AbhHIBZu (ORCPT + 99 others); Sun, 8 Aug 2021 21:25:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbhHIBZt (ORCPT ); Sun, 8 Aug 2021 21:25:49 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E164C061757; Sun, 8 Aug 2021 18:25:29 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id nt11so2250665pjb.2; Sun, 08 Aug 2021 18:25:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=c4zBEXHSnnZcsQHQ8z4JVrNIpxRpFJ4lGSST5YzfDQs=; b=t+DkEpL/uHqaIk87ck3eObxGbVLPuCBfoWwjaRcgvgeaK8CUK1uoq824QbvZqXP7tA dEaxk6UxNT6v1OMmFkajqnZwbLePiOaA0L+6ks3bq5a+SDVebkOoq0wBYbJGgmcPXruj pNUpk3AHmcFKzLMCR3WaODbbnFbYtV+aJhf7v2ikOaY5+2AKS1ibC9TjlurVR403/o7s /hlnGetOo6DuamApPHNBeyfjA7oWqrzOYPGENY4lF3/BRo6hhJlZHxbdnNoEl5Sg+joZ bKkdCSOSmM4LZUByaaUnYdUMOGaXgOQPzaIM4SpGNV660QqxnmDJuy8aaY3A/G4kIGxw bq2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=c4zBEXHSnnZcsQHQ8z4JVrNIpxRpFJ4lGSST5YzfDQs=; b=GZTF+WfsKx2AH6DKWUnW9Hxdv41W0jJnF8abArbFcS9MyV7YXrP219lktp22wFLj1A yU4I5L17cnTeHEK75gQ+P7cq9BFoSjPLhtV00bkcM2Idzj1RFnGZDNxDRsIrMnqo75BT pamVIHEK+Te1/v9JhvTdC/LA7qjIYth95pXvSixFV99YmLq9rQv36dJlj6/0Ol3Wx6oX QSqBaJjkg5IV3ZG3+HlM6G67ckU1Q0nqZ4QGYL66KQGsXqyNaEAMjlx0Z5fd4yG/ZC7i 9dcAEOR08ePooY3+mm+MFfxepDxUzq+UHfTeKXfoy3AR6dRwsWh/Qic/hPBb7omnuSBE fWzw== X-Gm-Message-State: AOAM530E8t88E75FXgOn/7JChFLsqSzyaOW1+r5BGfSz/WGO5Ex0zHNh 09qWZzFK5vxcWHoB3VM+NoA= X-Received: by 2002:a17:902:a988:b029:12c:4609:f182 with SMTP id bh8-20020a170902a988b029012c4609f182mr10653329plb.14.1628472328922; Sun, 08 Aug 2021 18:25:28 -0700 (PDT) Received: from [192.168.11.2] (KD106167171201.ppp-bb.dion.ne.jp. [106.167.171.201]) by smtp.gmail.com with ESMTPSA id c26sm11677888pfo.3.2021.08.08.18.25.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Aug 2021 18:25:28 -0700 (PDT) Subject: [PATCH v4 7/9] docs: pdfdocs: Permit AutoFakeSlant for CJK fonts To: Jonathan Corbet Cc: Mauro Carvalho Chehab , "Wu X.C." , SeongJae Park , Hu Haowen , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Akira Yokosawa References: <39d0fb0f-b248-bca4-2dac-df69e8d697b1@gmail.com> From: Akira Yokosawa Message-ID: <502335cc-9a95-3c2a-7744-6cc56ecaf628@gmail.com> Date: Mon, 9 Aug 2021 10:25:25 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <39d0fb0f-b248-bca4-2dac-df69e8d697b1@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Documentation/conf.py | 56 +++++++++++++++--------------- Documentation/translations/conf.py | 2 +- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/Documentation/conf.py b/Documentation/conf.py index f219a7a41f48..afa085c71781 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -364,49 +364,49 @@ latex_elements['preamble'] += ''' % This is needed for translations \\usepackage{xeCJK} \\IfFontExistsTF{Noto Serif CJK SC}{ - \\setCJKmainfont{Noto Serif CJK SC} + \\setCJKmainfont{Noto Serif CJK SC}[AutoFakeSlant] }{ - \\setCJKmainfont{Noto Sans CJK SC} + \\setCJKmainfont{Noto Sans CJK SC}[AutoFakeSlant] } - \\setCJKsansfont{Noto Sans CJK SC} - \\setCJKmonofont{Noto Sans Mono CJK SC} + \\setCJKsansfont{Noto Sans CJK SC}[AutoFakeSlant] + \\setCJKmonofont{Noto Sans Mono CJK SC}[AutoFakeSlant] % CJK Language-specific font choices \\IfFontExistsTF{Noto Serif CJK SC}{ - \\newCJKfontfamily[SCmain]\\scmain{Noto Serif CJK SC} - \\newCJKfontfamily[SCserif]\\scserif{Noto Serif CJK SC} + \\newCJKfontfamily[SCmain]\\scmain{Noto Serif CJK SC}[AutoFakeSlant] + \\newCJKfontfamily[SCserif]\\scserif{Noto Serif CJK SC}[AutoFakeSlant] }{ - \\newCJKfontfamily[SCmain]\\scmain{Noto Sans CJK SC} - \\newCJKfontfamily[SCserif]\\scserif{Noto Sans CJK SC} + \\newCJKfontfamily[SCmain]\\scmain{Noto Sans CJK SC}[AutoFakeSlant] + \\newCJKfontfamily[SCserif]\\scserif{Noto Sans CJK SC}[AutoFakeSlant] } - \\newCJKfontfamily[SCsans]\\scsans{Noto Sans CJK SC} - \\newCJKfontfamily[SCmono]\\scmono{Noto Sans Mono CJK SC} + \\newCJKfontfamily[SCsans]\\scsans{Noto Sans CJK SC}[AutoFakeSlant] + \\newCJKfontfamily[SCmono]\\scmono{Noto Sans Mono CJK SC}[AutoFakeSlant] \\IfFontExistsTF{Noto Serif CJK TC}{ - \\newCJKfontfamily[TCmain]\\tcmain{Noto Serif CJK TC} - \\newCJKfontfamily[TCserif]\\tcserif{Noto Serif CJK TC} + \\newCJKfontfamily[TCmain]\\tcmain{Noto Serif CJK TC}[AutoFakeSlant] + \\newCJKfontfamily[TCserif]\\tcserif{Noto Serif CJK TC}[AutoFakeSlant] }{ - \\newCJKfontfamily[TCmain]\\tcmain{Noto Sans CJK TC} - \\newCJKfontfamily[TCserif]\\tcserif{Noto Sans CJK TC} + \\newCJKfontfamily[TCmain]\\tcmain{Noto Sans CJK TC}[AutoFakeSlant] + \\newCJKfontfamily[TCserif]\\tcserif{Noto Sans CJK TC}[AutoFakeSlant] } - \\newCJKfontfamily[TCsans]\\tcsans{Noto Sans CJK TC} - \\newCJKfontfamily[TCmono]\\tcmono{Noto Sans Mono CJK TC} + \\newCJKfontfamily[TCsans]\\tcsans{Noto Sans CJK TC}[AutoFakeSlant] + \\newCJKfontfamily[TCmono]\\tcmono{Noto Sans Mono CJK TC}[AutoFakeSlant] \\IfFontExistsTF{Noto Serif CJK KR}{ - \\newCJKfontfamily[KRmain]\\krmain{Noto Serif CJK KR} - \\newCJKfontfamily[KRserif]\\krserif{Noto Serif CJK KR} + \\newCJKfontfamily[KRmain]\\krmain{Noto Serif CJK KR}[AutoFakeSlant] + \\newCJKfontfamily[KRserif]\\krserif{Noto Serif CJK KR}[AutoFakeSlant] }{ - \\newCJKfontfamily[KRmain]\\krmain{Noto Sans CJK KR} - \\newCJKfontfamily[KRserif]\\krserif{Noto Sans CJK KR} + \\newCJKfontfamily[KRmain]\\krmain{Noto Sans CJK KR}[AutoFakeSlant] + \\newCJKfontfamily[KRserif]\\krserif{Noto Sans CJK KR}[AutoFakeSlant] } - \\newCJKfontfamily[KRsans]\\krsans{Noto Sans CJK KR} - \\newCJKfontfamily[KRmono]\\krmono{Noto Sans Mono CJK KR} + \\newCJKfontfamily[KRsans]\\krsans{Noto Sans CJK KR}[AutoFakeSlant] + \\newCJKfontfamily[KRmono]\\krmono{Noto Sans Mono CJK KR}[AutoFakeSlant] \\IfFontExistsTF{Noto Serif CJK JP}{ - \\newCJKfontfamily[JPmain]\\jpmain{Noto Serif CJK JP} - \\newCJKfontfamily[JPserif]\\jpserif{Noto Serif CJK JP} + \\newCJKfontfamily[JPmain]\\jpmain{Noto Serif CJK JP}[AutoFakeSlant] + \\newCJKfontfamily[JPserif]\\jpserif{Noto Serif CJK JP}[AutoFakeSlant] }{ - \\newCJKfontfamily[JPmain]\\jpmain{Noto Sans CJK JP} - \\newCJKfontfamily[JPserif]\\jpserif{Noto Sans CJK JP} + \\newCJKfontfamily[JPmain]\\jpmain{Noto Sans CJK JP}[AutoFakeSlant] + \\newCJKfontfamily[JPserif]\\jpserif{Noto Sans CJK JP}[AutoFakeSlant] } - \\newCJKfontfamily[JPsans]\\jpsans{Noto Sans CJK JP} - \\newCJKfontfamily[JPmono]\\jpmono{Noto Sans Mono CJK JP} + \\newCJKfontfamily[JPsans]\\jpsans{Noto Sans CJK JP}[AutoFakeSlant] + \\newCJKfontfamily[JPmono]\\jpmono{Noto Sans Mono CJK JP}[AutoFakeSlant] % Dummy commands for Sphinx < 2.3 (no 'extrapackages' support) \\providecommand{\\onehalfspacing}{} \\providecommand{\\singlespacing}{} diff --git a/Documentation/translations/conf.py b/Documentation/translations/conf.py index e859c2e19e8b..92cdbba74229 100644 --- a/Documentation/translations/conf.py +++ b/Documentation/translations/conf.py @@ -7,6 +7,6 @@ latex_elements['preamble'] += ''' \\IfFontExistsTF{Noto Sans CJK SC}{ % For CJK ascii-art alignment - \\setmonofont{Noto Sans Mono CJK SC} + \\setmonofont{Noto Sans Mono CJK SC}[AutoFakeSlant] }{} ''' -- 2.17.1