-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPT_CompilerSwitches.inc
More file actions
71 lines (57 loc) · 3.09 KB
/
PT_CompilerSwitches.inc
File metadata and controls
71 lines (57 loc) · 3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
////////////////////////////////////////////////////////////////////////////////
// //
// PascalType - Compiler Switches //
// ------------------------------ //
// //
// With this include file you can finetune some settings. Not all of them //
// are documented in full length, but at least a hint is given here as well. //
// //
////////////////////////////////////////////////////////////////////////////////
{ Enable this option, if you want to check even reserved values and other
non-mandatory values.
Note that enabling this will cause some unit tests to fail (because they are
fed bad, but survivable, fonts.
* Default: Disabled }
{-$DEFINE StrictExceptions}
{ Enable this option, if you want to raise an exception on non-severe font errors
* Default: Disabled }
{-$DEFINE WarningExceptions}
{ If enabled every single read operation is validated to ensure all bytes
queried could be readed entirely. While this guarantee to identify problems
that would be hidden otherwise it is quite slow for the typical use.
* Default: Disabled }
{$DEFINE ValidateEveryReadOperation}
{ This compiler switch enables the checksum test for each table. To ensure the
font file is valid this should be enabled. However some older fonts contain
invalid checksums, which will result in an exception.
* Default: Enabled }
{-$DEFINE ChecksumTest}
{ Enable this option, if you want to enable using floating points where
applicable. If this is disabled you may be able to use this library on
processors that do not support floating point operations or run too slow.
* Default: Enabled }
{$DEFINE UseFloatingPoint}
{ Enable this option, if you want to inline all stream data access operations
If supported by the compiler, this will gain a speed benefit at the expense
of larger executables.
* Default: Disabled }
{-$DEFINE UseInline}
{ Enable this option, if you want to skip any optional table that is considered
to be incomplete by this library. The optional features won't be available,
but loading of the fonts should still be possible.
* Default: Enabled }
{$define IgnoreIncompleteOptionalTables}
{ Enable FailOnCompositeGlyphTooDeep if composite glyph definition that exceed
a defined max depth (8 by default) should raise an exception.
Otherwise lower levels will just be ignored.
See: TPascalTypeFontFace.MaxCompositeGlyphDepth.
* Default: Enabled }
{$define FailOnCompositeGlyphTooDeep}
{ Enable Inverse_Y_axis to have delta-Y values applied as if the Y-origin is
at the top (Windows GDI convention), instead of at the bottom (OpenType
convention).
See: TPascalTypeRasterizerGraphics32.RenderShapedText
* Default: Enabled }
{$define Inverse_Y_axis}
{-$define PhantomPoints} // Experimental
{$DEFINE PUREPASCAL}