cjk-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Font shape substitute for boldface


From: Liang-Ting Chen
Subject: Re: Font shape substitute for boldface
Date: Mon, 21 Oct 2024 20:02:22 +0800

Haha, thanks for the pointer! 

After looking into the example and the log again, I realised that the font definition is only loaded
after a CJK character is used. 

So, a local solution is clear -- load the font definition explicitly and declare the font shape:

> \input{c70bkai.fd}
> \DeclareFontShape{C70}{bkai}{b}{n}{<-> CJKb * bkaiu}{\CJKbold}

This solved my problem.

Cheers,
Liang-Ting

On Mon, 21 Oct 2024 at 19:02, Werner LEMBERG <wl@gnu.org> wrote:

>> However, nothing prevents you from adding `\DeclareFontShape`
>> commands to the preamble of your document; this should solve your
>> problem locally.
>
> When I moved `\DeclareFontShape` commands to the preamble from .fd,
> LaTeX emits the following error:
>
>> ! LaTeX Error: Font family `C70+bkai' unknown.
>
> Maybe I am missing something, but I don't see why it fails to find
> it.

Does the code in `examples/UTF8.tex` help?


    Werner


--
Dr Liang-Ting Chen
Institute of Information Science
Academia Sinica, Taiwan

https://l-tchen.github.io

reply via email to

[Prev in Thread] Current Thread [Next in Thread]