File tree Expand file tree Collapse file tree 3 files changed +120
-126
lines changed Expand file tree Collapse file tree 3 files changed +120
-126
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
-
3
-
4
2
/*******************************************************************************
5
3
* TTFontFile class *
6
4
* *
7
5
* This class is based on The ReportLab Open Source PDF library *
8
6
* written in Python - http://www.reportlab.com/software/opensource/ *
9
7
* together with ideas from the OpenOffice source code and others. *
10
8
* *
11
- * Version: 1.05 *
12
- * Date: 2018-03-19 *
9
+ * Version: 1.06 *
10
+ * Date: 2022-12-20 *
13
11
* Author: Ian Back <[email protected] > *
14
12
* License: LGPL *
15
13
* Copyright (c) Ian Back, 2010 *
37
35
38
36
class TTFontFile {
39
37
40
- var $ maxUni ;
41
- var $ _pos ;
42
- var $ numTables ;
43
- var $ searchRange ;
44
- var $ entrySelector ;
45
- var $ rangeShift ;
46
- var $ tables ;
47
- var $ otables ;
48
- var $ filename ;
49
- var $ fh ;
50
- var $ hmetrics ;
51
- var $ glyphPos ;
52
- var $ charToGlyph ;
53
- var $ ascent ;
54
- var $ descent ;
55
- var $ name ;
56
- var $ familyName ;
57
- var $ styleName ;
58
- var $ fullName ;
59
- var $ uniqueFontID ;
60
- var $ unitsPerEm ;
61
- var $ bbox ;
62
- var $ capHeight ;
63
- var $ stemV ;
64
- var $ italicAngle ;
65
- var $ flags ;
66
- var $ underlinePosition ;
67
- var $ underlineThickness ;
68
- var $ charWidths ;
69
- var $ defaultWidth ;
70
- var $ maxStrLenRead ;
38
+ public $ maxUni ;
39
+ public $ maxUniChar ;
40
+ public $ sFamilyClass ;
41
+ public $ sFamilySubClass ;
42
+ public $ _pos ;
43
+ public $ numTables ;
44
+ public $ searchRange ;
45
+ public $ entrySelector ;
46
+ public $ rangeShift ;
47
+ public $ tables ;
48
+ public $ otables ;
49
+ public $ filename ;
50
+ public $ fh ;
51
+ public $ hmetrics ;
52
+ public $ glyphPos ;
53
+ public $ charToGlyph ;
54
+ public $ codeToGlyph ;
55
+ public $ glyphdata ;
56
+ public $ ascent ;
57
+ public $ descent ;
58
+ public $ TTCFonts ;
59
+ public $ version ;
60
+ public $ name ;
61
+ public $ familyName ;
62
+ public $ styleName ;
63
+ public $ fullName ;
64
+ public $ uniqueFontID ;
65
+ public $ unitsPerEm ;
66
+ public $ bbox ;
67
+ public $ capHeight ;
68
+ public $ stemV ;
69
+ public $ italicAngle ;
70
+ public $ flags ;
71
+ public $ underlinePosition ;
72
+ public $ underlineThickness ;
73
+ public $ charWidths ;
74
+ public $ defaultWidth ;
75
+ public $ maxStrLenRead ;
71
76
72
77
function __construct () {
73
78
$ this ->maxStrLenRead = 200000 ; // Maximum size of glyf table to read in as string (otherwise reads each glyph from file)
@@ -1080,10 +1085,6 @@ function endTTFile(&$stm) {
1080
1085
return $ stm ;
1081
1086
}
1082
1087
1083
-
1084
-
1085
-
1086
1088
}
1087
1089
1088
-
1089
- ?>
1090
+ ?>
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
2
< html >
3
3
< head >
4
- < meta http-equiv ="Content-Type " content ="text/html; charset=ISO-8859-1 ">
4
+ < meta http-equiv ="Content-Type " content ="text/html; charset=UTF-8 ">
5
5
< title > tFPDF</ title >
6
6
< style type ="text/css ">
7
7
body {font-family : "Times New Roman" , serif}
You can’t perform that action at this time.
0 commit comments