当前位置: 首页>>代码示例>>PHP>>正文


PHP Internationalization::getTtfFonts方法代码示例

本文整理汇总了PHP中Internationalization::getTtfFonts方法的典型用法代码示例。如果您正苦于以下问题:PHP Internationalization::getTtfFonts方法的具体用法?PHP Internationalization::getTtfFonts怎么用?PHP Internationalization::getTtfFonts使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Internationalization的用法示例。


在下文中一共展示了Internationalization::getTtfFonts方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

			),
		),
	"cambriamath" => array(
		'R' => "cambria.ttc",
		'TTCfontID' => array(
			'R' => 2,	
			),
		),
*/
$this->fontdata = array("dejavusanscondensed" => array('R' => "DejaVuSansCondensed.ttf", 'B' => "DejaVuSansCondensed-Bold.ttf", 'I' => "DejaVuSansCondensed-Oblique.ttf", 'BI' => "DejaVuSansCondensed-BoldOblique.ttf"), "dejavusans" => array('R' => "DejaVuSans.ttf", 'B' => "DejaVuSans-Bold.ttf", 'I' => "DejaVuSans-Oblique.ttf", 'BI' => "DejaVuSans-BoldOblique.ttf"), "dejavuserif" => array('R' => "DejaVuSerif.ttf", 'B' => "DejaVuSerif-Bold.ttf", 'I' => "DejaVuSerif-Italic.ttf", 'BI' => "DejaVuSerif-BoldItalic.ttf"), "dejavuserifcondensed" => array('R' => "DejaVuSerifCondensed.ttf", 'B' => "DejaVuSerifCondensed-Bold.ttf", 'I' => "DejaVuSerifCondensed-Italic.ttf", 'BI' => "DejaVuSerifCondensed-BoldItalic.ttf"), "dejavusansmono" => array('R' => "DejaVuSansMono.ttf", 'B' => "DejaVuSansMono-Bold.ttf", 'I' => "DejaVuSansMono-Oblique.ttf", 'BI' => "DejaVuSansMono-BoldOblique.ttf"), "ocrb" => array('R' => "ocrb10.ttf"), "ind_bn_1_001" => array('R' => "ind_bn_1_001.ttf", 'indic' => true), "ind_hi_1_001" => array('R' => "ind_hi_1_001.ttf", 'indic' => true), "ind_ml_1_001" => array('R' => "ind_ml_1_001.ttf", 'indic' => true), "ind_kn_1_001" => array('R' => "ind_kn_1_001.ttf", 'indic' => true), "ind_gu_1_001" => array('R' => "ind_gu_1_001.ttf", 'indic' => true), "ind_or_1_001" => array('R' => "ind_or_1_001.ttf", 'indic' => true), "ind_ta_1_001" => array('R' => "ind_ta_1_001.ttf", 'indic' => true), "ind_te_1_001" => array('R' => "ind_te_1_001.ttf", 'indic' => true), "ind_pa_1_001" => array('R' => "ind_pa_1_001.ttf", 'indic' => true), "xbriyaz" => array('R' => "XB Riyaz.ttf", 'B' => "XB RiyazBd.ttf", 'I' => "XB RiyazIt.ttf", 'BI' => "XB RiyazBdIt.ttf", 'unAGlyphs' => true), "xbzar" => array('R' => "XB Zar.ttf", 'B' => "XB Zar Bd.ttf", 'I' => "XB Zar It.ttf", 'BI' => "XB Zar BdIt.ttf", 'unAGlyphs' => true));
// Add fonts to this array if they contain characters in the SIP or SMP Unicode planes
// but you do not require them. This allows a more efficient form of subsetting to be used.
$this->BMPonly = array("dejavusanscondensed", "dejavusans", "dejavuserifcondensed", "dejavuserif", "dejavusansmono");
// These next 3 arrays do two things:
// 1. If a font referred to in HTML/CSS is not available to mPDF, these arrays will determine whether
//    a serif/sans-serif or monospace font is substituted
// 2. The first font in each array will be the font which is substituted in circumstances as above
//     (Otherwise the order is irrelevant)
// Use the mPDF font-family names i.e. lowercase and no spaces (after any translations in $fonttrans)
// Always include "sans-serif", "serif" and "monospace" etc.
$this->sans_fonts = array('dejavusanscondensed', 'dejavusans', 'freesans', 'liberationsans', 'sans', 'sans-serif', 'cursive', 'fantasy', 'arial', 'helvetica', 'verdana', 'geneva', 'lucida', 'arialnarrow', 'arialblack', 'arialunicodems', 'franklin', 'franklingothicbook', 'tahoma', 'garuda', 'calibri', 'trebuchet', 'lucidagrande', 'microsoftsansserif', 'trebuchetms', 'lucidasansunicode', 'franklingothicmedium', 'albertusmedium', 'xbriyaz', 'albasuper', 'quillscript');
$this->serif_fonts = array('dejavuserifcondensed', 'dejavuserif', 'freeserif', 'liberationserif', 'serif', 'timesnewroman', 'times', 'centuryschoolbookl', 'palatinolinotype', 'centurygothic', 'bookmanoldstyle', 'bookantiqua', 'cyberbit', 'cambria', 'norasi', 'charis', 'palatino', 'constantia', 'georgia', 'albertus', 'xbzar', 'algerian', 'garamond');
$this->mono_fonts = array('dejavusansmono', 'freemono', 'liberationmono', 'courier', 'mono', 'monospace', 'ocrb', 'ocr-b', 'lucidaconsole', 'couriernew', 'monotypecorsiva');
// Add fonts from language packs
list($phar_fonts, $phar_subs) = Internationalization::getTtfFonts();
$this->fontdata += $phar_fonts;
foreach ($phar_subs as $simple) {
    if (!in_array($simple, $this->backupSubsFont)) {
        $this->backupSubsFont[] = $simple;
    }
}
开发者ID:dmiguel92,项目名称:osTicket-1.8,代码行数:31,代码来源:config_fonts.php


注:本文中的Internationalization::getTtfFonts方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。