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
3636 (mktype Version16Dot16 32 u32int (cons "%d.%d" (λ (v) (~a v ">>16, " v "&0xffff"))))
3737 (mktype Fixed
3838 32
39− float
39+ double
4040 "%g"
4141 (λ (b index [offset #f]) (~a "(" ((type-parse int32) b index offset) ")/65536.0f")))
4242 (mktype F2DOT14
4343 16
44− float
44+ double
4545 "%g"
4646 (λ (b index [offset #f])
4747 (define x (~a ((type-parse int16) b index offset)))
plan9/otf.h+12−12
@@ -401,7 +401,7 @@ enum { // TableHead · 400 unmodified lines
401401 struct TableHead {
402402 // u16int majorVersion;
403403 // u16int minorVersion;
404− // float fontRevision;
404+ // double fontRevision;
405405 // u32int checksumAdjustment;
406406 // u32int magicNumber;
407407 u16int flags;
@@ -482,7 +482,7 @@ void print_TableHmtx(Otfile *f, int indent, Otf *o, TableHmtx *v); · 74 unmodified lines
482482
483483 struct TablePost {
484484 // u32int version;
485− float italicAngle;
485+ double italicAngle;
486486 s16int underlinePosition;
487487 s16int underlineThickness;
488488 u32int isFixedPitch;
@@ -1192,9 +1192,9 @@ enum { // VariationAxisRecord · 703 unmodified lines
11921192
11931193 struct VariationAxisRecord {
11941194 u32int axisTag;
1195− float minValue;
1196− float defaultValue;
1197− float maxValue;
1195+ double minValue;
1196+ double defaultValue;
1197+ double maxValue;
11981198 u16int flags;
11991199 u16int axisNameID;
12001200 };
@@ -1203,7 +1203,7 @@ int read_VariationAxisRecord(Otf *o, VariationAxisRecord *v); · 2 unmodified lines
12031203 void print_VariationAxisRecord(Otfile *f, int indent, Otf *o, VariationAxisRecord *v);
12041204
12051205 struct UserTuple {
1206− float *coordinates;
1206+ double *coordinates;
12071207 };
12081208
12091209 int read_UserTuple(Otf *o, UserTuple *v);
@@ -1243,9 +1243,9 @@ int read_TableFvar(Otf *o, TableFvar *v); · 33 unmodified lines
12431243 void print_TableFvar(Otfile *f, int indent, Otf *o, TableFvar *v);
12441244
12451245 struct RegionAxisCoordinates {
1246− float startCoord;
1247− float peakCoord;
1248− float endCoord;
1246+ double startCoord;
1247+ double peakCoord;
1248+ double endCoord;
12491249 };
12501250
12511251 int read_RegionAxisCoordinates(Otf *o, RegionAxisCoordinates *v);
@@ -1410,7 +1410,7 @@ int read_TableGasp(Otf *o, TableGasp *v); · 158 unmodified lines
14101410 void print_TableGasp(Otfile *f, int indent, Otf *o, TableGasp *v);
14111411
14121412 struct Tuple {
1413− float *coordinates;
1413+ double *coordinates;
14141414 };
14151415
14161416 int read_Tuple(Otf *o, Tuple *v);
@@ -1471,8 +1471,8 @@ int read_TableGvar(Otf *o, TableGvar *v); · 54 unmodified lines
14711471 void print_TableGvar(Otfile *f, int indent, Otf *o, TableGvar *v);
14721472
14731473 struct AxisValueMap {
1474− float fromCoordinate;
1475− float toCoordinate;
1474+ double fromCoordinate;
1475+ double toCoordinate;
14761476 };
14771477
14781478 int 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