Skip to content

Instantly share code, notes, and snippets.

@dohyunkim
Last active April 3, 2021 12:49
Show Gist options
  • Save dohyunkim/396fa6e04b416a110bcad146ab27ea8c to your computer and use it in GitHub Desktop.
Save dohyunkim/396fa6e04b416a110bcad146ab27ea8c to your computer and use it in GitHub Desktop.
xetex protrusion
\font\ntss="Noto Sans CJK KR:mapping=tex-text;script=hang;language=KOR" at 10pt
\ntss
% xetex -no-pdf xxx.tex 한 후 dviasm 을 실행해 gid 를 알아낸다.
\setbox0\hbox{\XeTeXglyph 63116}
\rpcode\font 63116=\dimexpr100\wd0/(\fontdimen6\font/10)\relax
\XeTeXprotrudechars=2
가.
\tracingoutput\maxdimen
\showboxdepth\maxdimen
\showboxbreadth\maxdimen
\bye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment