24 #require_once 'Zend/Pdf/Resource.php'; 32 #require_once 'Zend/Pdf/Font.php'; 224 public function getFontName($nameType, $language, $characterSet =
null)
226 if (! isset($this->_fontNames[$nameType])) {
230 if (is_array($language)) {
231 foreach ($language as
$code) {
232 if (isset($this->_fontNames[$nameType][
$code])) {
238 if (isset($this->_fontNames[$nameType][$language])) {
239 $name = $this->_fontNames[$nameType][$language];
244 if (
$name ===
null) {
245 $names = $this->_fontNames[$nameType];
246 $name = reset($names);
250 if (($characterSet !==
null) && ($characterSet !=
'UTF-16BE') && PHP_OS !=
'AIX') {
251 $name = iconv(
'UTF-16BE', $characterSet,
$name);
497 abstract public function encodeString($string, $charEncoding);
508 abstract public function decodeString($string, $charEncoding);
524 if ($this->_unitsPerEm == 1000) {
527 return ceil((
$value / $this->_unitsPerEm) * 1000);
glyphNumbersForCharacters($characterCodes)
glyphNumberForCharacter($characterCode)
getFontName($nameType, $language, $characterSet=null)
encodeString($string, $charEncoding)
getCoveredPercentage($string, $charEncoding='')
decodeString($string, $charEncoding)
widthForGlyph($glyphNumber)
widthsForGlyphs($glyphNumbers)
if(!isset($_GET['name'])) $name