Typing glyphs: Difference between revisions

Jump to navigation Jump to search
798 bytes added ,  16:31, 5 September 2022
Add description of 3270 Type1 font that can be used by pdfTeX
(Add description of 3270 Type1 font that can be used by pdfTeX)
Line 155: Line 155:


Depending on whether you want the whole document to use the APL font or not, you may remove the command to set the main font. If you do so, APL glyphs will be rendered correctly inside code listings and similar environments, but not in the main body of the document.
Depending on whether you want the whole document to use the APL font or not, you may remove the command to set the main font. If you do so, APL glyphs will be rendered correctly inside code listings and similar environments, but not in the main body of the document.
=== plainTeX ===
LdBeth has made a [https://ldbeth.sdf.org/aplfont.html Type1 version] of [https://github.com/rbanffy/3270font 3270 font] with APL support, suitable for traditional TeX implementations that cannot directly use TTF/OTF fonts.
[[File:3270 APL font sample.png|thumb|right|Screenshot of the typeset document]]
<source lang=latex>
\input apldef.tex
\font\apl=3270
\apl
1234567890{\rm Good?}\NG1+2-3{\rm Mixing some roman}
I just want some \IS +-\ML\DV\ST\LG\DQ\LO{}!?\ |\CE\FL\DE\EN\LK\RK\ =\NE\LE<>\GE\EU\SE
\AD\OR\NA\NO\ \UA\DA\RU\LU\SS\SQ\GU\GD\ \IO\UI\EP\UE\UU\DU\NT\ /\BL\CS\CB\ ,\BC\RO\RV\CR\TR
\DD\RR\PP.\SO\RN\OV{}@\ \QQ\BX\CQ\EQ\MQ\IB\XQ\FM\ \DM\LM\GO\OM\AM\DL\&
\NG\NL
\obeylines\DL S\IS SUM N;I
S\IS I\IS 0
\GO (N<I\IS I+1)/0
S\IS S+I\ST 2
\GO 2
\DL
\bye
</source>


==== Listings ====
==== Listings ====
12

edits

Navigation menu