Lines Matching refs:unicode
41 * Function takes UTF-8 encoded string and returns unicode number for every character.
47 $unicode = [];
54 $unicode[] = $thisValue;
63 $unicode[] = $number;
70 return $unicode;
156 $unicode = $z->getAttribute('unicode');
157 $unicode = $this->utf8ToUnicode($unicode);
159 if (isset($unicode[0])) {
160 $unicode = $unicode[0];
162 $this->font->glyphs[$unicode] = new stdClass();
163 $this->font->glyphs[$unicode]->horizAdvX = $z->getAttribute('horiz-adv-x');
164 if (empty($this->font->glyphs[$unicode]->horizAdvX)) {
165 $this->font->glyphs[$unicode]->horizAdvX = $this->font->horizAdvX;
167 $this->font->glyphs[$unicode]->d = $z->getAttribute('d');
169 // save em value for letter spacing (109 is unicode for the letter 'm')
170 if ($unicode == '109') {
171 $this->font->em = $this->font->glyphs[$unicode]->horizAdvX;
236 // line break support (10 is unicode for linebreak)
279 // line break support (10 is unicode for linebreak)
298 * Function takes unicode character and returns the UTF-8 equivalent
302 public function unicodeDef($unicode)
309 $d = $this->font->glyphs[hexdec($unicode)]->d;