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() {
8585 return $ uint32 >> 16 & 0x0000FFFF | $ uint32 << 16 & 0xFFFF0000 ;
8686 }
8787
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+
8897 /**
8998 * Get font copyright
9099 *
Original file line number Diff line number Diff line change @@ -470,6 +470,14 @@ public function getData($name, $key = null) {
470470 }
471471 }
472472
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+
473481 function addDirectoryEntry (DirectoryEntry $ entry ) {
474482 $ this ->directory [$ entry ->tag ] = $ entry ;
475483 }
You can’t perform that action at this time.
0 commit comments