help-texinfo
[Top][All Lists]
Advanced

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

Re: [help-texinfo] how to use letter LetterGothic as tt font in texinfo


From: Jinsong Zhao
Subject: Re: [help-texinfo] how to use letter LetterGothic as tt font in texinfo
Date: Wed, 17 Jul 2019 09:44:17 +0800
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 2019/7/17 1:13, Gavin Smith wrote:
On Tue, Jul 16, 2019 at 05:11:56PM +0800, Jinsong Zhao wrote:
On 2019/7/16 15:51, Jinsong Zhao wrote:
Hi there,

I try to use LetterGothic from URW as the default tt font in texinfo. It
almost works, except for the single quote (quoteright?) in @code{'}. The
symbol is missing in the output pdf file. The log file said that:

Missing character: There is no
   in font ulgb8r!

The font is installed from
https://www.ctan.org/tex-archive/fonts/urw/lettergothic/

The setting for the font in texinfo is:
\font\texttt=ulgb8r at 10pt %Letter Gothic-Bold
\font\textttsl=ulgbi8r at 10pt %Letter Gothic-BoldItalic

Is it possible to use this font in texinfo?

Any suggestion is really appreciated.

Best,
Jinsong


It seems that the problem caused by

@codequoteundirected on

if it set to off, the quoteright could be displayed.

I think I have been able to install the font using a mixture of the
instructions at your link and at https://www.tug.org/fonts/fontinstall.html,
but I don't see how to get the output in the font.  I tried

\input texinfo

X@code{aaaa 'bbbbbb}X

@tex
\globaldefs=1
\font\texttt=ulgb8r at 10pt %Letter Gothic-Bold
\font\textttsl=ulgbi8r at 10pt %Letter Gothic-BoldItalic
@end tex


X@code{aaaa 'bbbbbb}X

@bye

but both lines are in the same font.  I managed to get a display of the
font using "pdfetex testfont".  See attached file.  The straight
apostrophe seems to be located at position '037, it's just a question of
how to get it.

Thank you very much for the clue of displaying the font table.

I get the correct output by redefining \codequoteright. The original definition (\char'15) is based on cmtt.

@tex
\globaldefs=1
\def\codequoteright{%
  \ifmonospace
    \char'37
   \fi
}
@end tex

Thanks again.

Best,
Jinsong




reply via email to

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