1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2026-04-20 01:16:36 +00:00

Add left and width together for advance

This commit is contained in:
David Schmenk
2025-01-11 22:54:16 -08:00
parent 6b8d7fa38b
commit b7a7d60019
2 changed files with 2 additions and 7 deletions
+1 -6
View File
@@ -57,12 +57,6 @@ def fontRead(filename)#5
glyph->gly_height = height
glyph->gly_adv = adv
if not base; base = glyph; fin
//glyph = glyph + gly_pixmap
//height = width * height - 1
//for i = 0 to height
// width = glyph->[i]
// glyph->[i] = clrRot[width&$0F]|(clrRot[width>>4]<<4)
//next
else
if base; heaprelease(base); fin
base = NULL
@@ -168,6 +162,7 @@ dhgrOp(OP_XOR)
while arg and ^arg
fontLoad(arg)
xPen, yPen = pixGlyphStr(xPen, yPen, "\nHello, world")
//xPen, yPen = bitGlyphStr(xPen, yPen, "\nHello, world")
arg = argNext(arg)
loop
getc
+1 -1
View File
@@ -68,7 +68,7 @@ void write_glyph(FILE *fp, int c)
glyphdef[1] = -top;
glyphdef[2] = (width + 3) / 4;
glyphdef[3] = height;
glyphdef[4] = width - left;
glyphdef[4] = width + left;
fwrite(&glyphdef, 1, 5, fp);
pixOffset = locTable[c];