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:
@@ -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
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user