diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-10-13 13:51:39 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-10-13 19:46:37 +0200 |
commit | a17fb721bd0b6ddde88c4aaf3ceba9650f4e7879 (patch) | |
tree | 35f31cde47ac53dcfdcba495477bf203630f4be8 /vcl/inc/sft.hxx | |
parent | 0c46c81e04530e8f6ce4f34195d8f0443ed8bfc3 (diff) |
Refactor + fix TrueTypeTableNew_post + some reading types for sft/ttcr (vcl)
Move const in sft.hxx and replace define by static const
Also, fix some errors with data formats
+ TrueTypeTableNew_post definition
Following https://docs.microsoft.com/en-us/typography/opentype/spec/otff:
Fixed = 32-bit signed fixed-point number (16.16)
FWORD = int16
UFWORD = uint16
Change-Id: I8c460e517b9f25077f5ad81a6da656695c8e6fa1
Reviewed-on: https://gerrit.libreoffice.org/80733
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/inc/sft.hxx')
-rw-r--r-- | vcl/inc/sft.hxx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vcl/inc/sft.hxx b/vcl/inc/sft.hxx index 27a5093e61e7..e52657fe4933 100644 --- a/vcl/inc/sft.hxx +++ b/vcl/inc/sft.hxx @@ -425,6 +425,29 @@ static const int GLYF_yMin_offset = 4; static const int GLYF_xMax_offset = 6; static const int GLYF_yMax_offset = 8; +static const sal_uInt32 T_true = 0x74727565; /* 'true' */ +static const sal_uInt32 T_ttcf = 0x74746366; /* 'ttcf' */ +static const sal_uInt32 T_otto = 0x4f54544f; /* 'OTTO' */ + +// standard TrueType table tags +static const sal_uInt32 T_maxp = 0x6D617870; +static const sal_uInt32 T_glyf = 0x676C7966; +static const sal_uInt32 T_head = 0x68656164; +static const sal_uInt32 T_loca = 0x6C6F6361; +static const sal_uInt32 T_name = 0x6E616D65; +static const sal_uInt32 T_hhea = 0x68686561; +static const sal_uInt32 T_hmtx = 0x686D7478; +static const sal_uInt32 T_cmap = 0x636D6170; +static const sal_uInt32 T_vhea = 0x76686561; +static const sal_uInt32 T_vmtx = 0x766D7478; +static const sal_uInt32 T_OS2 = 0x4F532F32; +static const sal_uInt32 T_post = 0x706F7374; +static const sal_uInt32 T_cvt = 0x63767420; +static const sal_uInt32 T_prep = 0x70726570; +static const sal_uInt32 T_fpgm = 0x6670676D; +static const sal_uInt32 T_gsub = 0x47535542; +static const sal_uInt32 T_CFF = 0x43464620; + /** * @defgroup sft Sun Font Tools Exported Functions |