METAFONT:当一个字母大部分是另一个字母的重复时

METAFONT:当一个字母大部分是另一个字母的重复时

我在徽标字体中添加了几个字母。

beginlogochar("C",14);
x3=leftstemloc;
x1=x5=w-x3;
x2=x4=.382[x3,x1];
top y1=h; y3=barheight; bot y5=0;
y2=y1; y4=y5;
draw z1--z2; draw z4--z5;
super_crescent(2,3,4);
labels(1,2,3,4,5); endchar;

beginlogochar("G",14);
x3=leftstemloc;
x1=x5=w-x3;
x2=x4=.382[x3,x1];
top y1=h; y3=barheight; bot y5=0;
y2=y1; y4=y5;
z6=(x5,barheight); z7=.382[z6,z3];
draw z1--z2; draw z4--z5;
super_crescent(2,3,4);
draw z5--z6--z7;
labels(1,2,3,4,5,6,7); endchar;

但第二个方法基本上是第一个方法的重复。有什么更简洁的方法可以做到这一点?

(为了使示例正常运行,请复制 texmf-dist/fonts/source/public/knuth-lib/logo.mf 和 logo10.mf,重命名它们(并在后者中更改对前者的引用),然后将其添加到前者。)

相关内容