File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,15 @@ public function readUInt32() {
85
85
return $ uint32 >> 16 & 0x0000FFFF | $ uint32 << 16 & 0xFFFF0000 ;
86
86
}
87
87
88
+
89
+ function setData ($ name , $ key , $ value ) {
90
+ if (!$ key ) {
91
+ $ this ->header ->data = $ value ;
92
+ } else {
93
+ $ this ->header ->data [$ key ] = $ value ;
94
+ }
95
+ }
96
+
88
97
/**
89
98
* Get font copyright
90
99
*
Original file line number Diff line number Diff line change @@ -470,6 +470,14 @@ public function getData($name, $key = null) {
470
470
}
471
471
}
472
472
473
+ public function setData ($ name , $ key , $ value ) {
474
+ if (!$ key ) {
475
+ $ this ->data [$ name ]->data = $ value ;
476
+ } else {
477
+ $ this ->data [$ name ]->data [$ key ] = $ value ;
478
+ }
479
+ }
480
+
473
481
function addDirectoryEntry (DirectoryEntry $ entry ) {
474
482
$ this ->directory [$ entry ->tag ] = $ entry ;
475
483
}
You can’t perform that action at this time.
0 commit comments