1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-29 04:22:16 -05:00

Adding an index for reversing data out of the TocrData record

git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@455 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
BenLand100 2010-01-23 23:50:05 +00:00
parent 8e69439614
commit 6cf5e3e1d8

View File

@ -19,6 +19,7 @@ type
TocrGlyphMetric = record
xoff,yoff: integer;
width,height: integer;
index: integer; //stores the internal TocrData index for this char
end;
TocrData = record
ascii: array[0..255] of TocrGlyphMetric;
@ -240,6 +241,7 @@ begin
if pos = 0 then result.neg_adj[i]:= 1 else result.neg_adj[i]:= 1 / pos;
if pos = 0 then result.pos_adj[i]:= 0 else result.pos_adj[i]:= 1 / pos;
result.map[i]:= ascii;
result.ascii[ord(ascii)].index:= i;
result.ascii[ord(ascii)].xoff:= masks[i].l;
result.ascii[ord(ascii)].yoff:= masks[i].t;
result.ascii[ord(ascii)].width:= masks[i].width;