當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TCPDF_FONTS::UTF8ToLatin1方法代碼示例

本文整理匯總了PHP中TCPDF_FONTS::UTF8ToLatin1方法的典型用法代碼示例。如果您正苦於以下問題:PHP TCPDF_FONTS::UTF8ToLatin1方法的具體用法?PHP TCPDF_FONTS::UTF8ToLatin1怎麽用?PHP TCPDF_FONTS::UTF8ToLatin1使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TCPDF_FONTS的用法示例。


在下文中一共展示了TCPDF_FONTS::UTF8ToLatin1方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _escapetext

 /**
  * THIS METHOD IS DEPRECATED
  * Format a text string
  * @param $s (string) string to escape.
  * @return string escaped string.
  * @protected
  * @deprecated
  */
 protected function _escapetext($s)
 {
     if ($this->isunicode) {
         if ($this->CurrentFont['type'] == 'core' or $this->CurrentFont['type'] == 'TrueType' or $this->CurrentFont['type'] == 'Type1') {
             $s = TCPDF_FONTS::UTF8ToLatin1($s, $this->isunicode, $this->CurrentFont);
         } else {
             //Convert string to UTF-16BE and reverse RTL language
             $s = TCPDF_FONTS::utf8StrRev($s, false, $this->tmprtl, $this->isunicode, $this->CurrentFont);
         }
     }
     return TCPDF_STATIC::_escape($s);
 }
開發者ID:TheTypoMaster,項目名稱:myapps,代碼行數:20,代碼來源:tcpdf.php

示例2: getInternalPageNumberAliases

 /**
  * Return an array containing variations for the basic page number alias.
  * @param $a (string) Base alias.
  * @return array of page number aliases
  * @protected
  */
 protected function getInternalPageNumberAliases($a = '')
 {
     $alias = array();
     // build array of Unicode + ASCII variants (the order is important)
     $alias = array('u' => array(), 'a' => array());
     $u = '{' . $a . '}';
     $alias['u'][] = TCPDF_STATIC::_escape($u);
     if ($this->isunicode) {
         $alias['u'][] = TCPDF_STATIC::_escape(TCPDF_FONTS::UTF8ToLatin1($u, $this->isunicode, $this->CurrentFont));
         $alias['u'][] = TCPDF_STATIC::_escape(TCPDF_FONTS::utf8StrRev($u, false, $this->tmprtl, $this->isunicode, $this->CurrentFont));
         $alias['a'][] = TCPDF_STATIC::_escape(TCPDF_FONTS::UTF8ToLatin1($a, $this->isunicode, $this->CurrentFont));
         $alias['a'][] = TCPDF_STATIC::_escape(TCPDF_FONTS::utf8StrRev($a, false, $this->tmprtl, $this->isunicode, $this->CurrentFont));
     }
     $alias['a'][] = TCPDF_STATIC::_escape($a);
     return $alias;
 }
開發者ID:developmentDM2,項目名稱:The-Haute-Mess,代碼行數:22,代碼來源:tcpdf.php


注:本文中的TCPDF_FONTS::UTF8ToLatin1方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。