History

store Fixed and F2DOT14 as double

Sigrid Solveig Haflínudóttir committed 2 years ago

Commit 76cff0a1 parent c6eb8a22 files · +14 −14Browse files

Unified · Split

2 files
  1. otf.rkt +2 −2
  2. plan9/otf.h +12 −12
otf.rkt+2−2
@@ -36,12 +36,12 @@ · 35 unmodified lines
36(mktype Version16Dot16 32 u32int (cons "%d.%d" (λ (v) (~a v ">>16, " v "&0xffff"))))36(mktype Version16Dot16 32 u32int (cons "%d.%d" (λ (v) (~a v ">>16, " v "&0xffff"))))
37(mktype Fixed37(mktype Fixed
38 3238 32
39 float39 double
40 "%g"40 "%g"
41 (λ (b index [offset #f]) (~a "(" ((type-parse int32) b index offset) ")/65536.0f")))41 (λ (b index [offset #f]) (~a "(" ((type-parse int32) b index offset) ")/65536.0f")))
42(mktype F2DOT1442(mktype F2DOT14
43 1643 16
44 float44 double
45 "%g"45 "%g"
46 (λ (b index [offset #f])46 (λ (b index [offset #f])
47 (define x (~a ((type-parse int16) b index offset)))47 (define x (~a ((type-parse int16) b index offset)))
plan9/otf.h+12−12
@@ -401,7 +401,7 @@ enum { // TableHead · 400 unmodified lines
401struct TableHead {401struct TableHead {
402 // u16int majorVersion;402 // u16int majorVersion;
403 // u16int minorVersion;403 // u16int minorVersion;
404 // float fontRevision;404 // double fontRevision;
405 // u32int checksumAdjustment;405 // u32int checksumAdjustment;
406 // u32int magicNumber;406 // u32int magicNumber;
407 u16int flags;407 u16int flags;
@@ -482,7 +482,7 @@ void print_TableHmtx(Otfile *f, int indent, Otf *o, TableHmtx *v); · 74 unmodified lines
482 482
483struct TablePost {483struct TablePost {
484 // u32int version;484 // u32int version;
485 float italicAngle;485 double italicAngle;
486 s16int underlinePosition;486 s16int underlinePosition;
487 s16int underlineThickness;487 s16int underlineThickness;
488 u32int isFixedPitch;488 u32int isFixedPitch;
@@ -1192,9 +1192,9 @@ enum { // VariationAxisRecord · 703 unmodified lines
1192 1192
1193struct VariationAxisRecord {1193struct VariationAxisRecord {
1194 u32int axisTag;1194 u32int axisTag;
1195 float minValue;1195 double minValue;
1196 float defaultValue;1196 double defaultValue;
1197 float maxValue;1197 double maxValue;
1198 u16int flags;1198 u16int flags;
1199 u16int axisNameID;1199 u16int axisNameID;
1200};1200};
@@ -1203,7 +1203,7 @@ int read_VariationAxisRecord(Otf *o, VariationAxisRecord *v); · 2 unmodified lines
1203void print_VariationAxisRecord(Otfile *f, int indent, Otf *o, VariationAxisRecord *v);1203void print_VariationAxisRecord(Otfile *f, int indent, Otf *o, VariationAxisRecord *v);
1204 1204
1205struct UserTuple {1205struct UserTuple {
1206 float *coordinates;1206 double *coordinates;
1207};1207};
1208 1208
1209int read_UserTuple(Otf *o, UserTuple *v);1209int read_UserTuple(Otf *o, UserTuple *v);
@@ -1243,9 +1243,9 @@ int read_TableFvar(Otf *o, TableFvar *v); · 33 unmodified lines
1243void print_TableFvar(Otfile *f, int indent, Otf *o, TableFvar *v);1243void print_TableFvar(Otfile *f, int indent, Otf *o, TableFvar *v);
1244 1244
1245struct RegionAxisCoordinates {1245struct RegionAxisCoordinates {
1246 float startCoord;1246 double startCoord;
1247 float peakCoord;1247 double peakCoord;
1248 float endCoord;1248 double endCoord;
1249};1249};
1250 1250
1251int read_RegionAxisCoordinates(Otf *o, RegionAxisCoordinates *v);1251int read_RegionAxisCoordinates(Otf *o, RegionAxisCoordinates *v);
@@ -1410,7 +1410,7 @@ int read_TableGasp(Otf *o, TableGasp *v); · 158 unmodified lines
1410void print_TableGasp(Otfile *f, int indent, Otf *o, TableGasp *v);1410void print_TableGasp(Otfile *f, int indent, Otf *o, TableGasp *v);
1411 1411
1412struct Tuple {1412struct Tuple {
1413 float *coordinates;1413 double *coordinates;
1414};1414};
1415 1415
1416int read_Tuple(Otf *o, Tuple *v);1416int read_Tuple(Otf *o, Tuple *v);
@@ -1471,8 +1471,8 @@ int read_TableGvar(Otf *o, TableGvar *v); · 54 unmodified lines
1471void print_TableGvar(Otfile *f, int indent, Otf *o, TableGvar *v);1471void print_TableGvar(Otfile *f, int indent, Otf *o, TableGvar *v);
1472 1472
1473struct AxisValueMap {1473struct AxisValueMap {
1474 float fromCoordinate;1474 double fromCoordinate;
1475 float toCoordinate;1475 double toCoordinate;
1476};1476};
1477 1477
1478int read_AxisValueMap(Otf *o, AxisValueMap *v);1478int read_AxisValueMap(Otf *o, AxisValueMap *v);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t