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


PHP mPDF::SetFont方法代码示例

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


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

示例1: mPDF

    $lang = str_pad($lang, 4, ' ');
}
//////////////////////////////////
//////////////////////////////////
//////////////////////////////////
set_time_limit(1200);
ini_set("memory_limit", "512M");
//==============================================================
$overrideTTFFontRestriction = true;
//==============================================================
include "../mpdf.php";
$mpdf = new mPDF('');
$mpdf->simpleTables = true;
//==============================================================
// This generates a .mtx.php file if not already generated
$mpdf->SetFont($family, $style);
//==============================================================
//==============================================================
//==============================================================
//==============================================================
$ff = array();
$ffs = '';
if ($lang && $script) {
    $GSUBFeatures = $mpdf->CurrentFont['GSUBFeatures'][$script][$lang];
    if (is_array($GSUBFeatures)) {
        foreach ($GSUBFeatures as $tag => $v) {
            $ff[] = '"' . $tag . '" 0';
        }
    }
    $GPOSFeatures = $mpdf->CurrentFont['GPOSFeatures'][$script][$lang];
    if (is_array($GPOSFeatures)) {
开发者ID:hipogea,项目名称:zega,代码行数:31,代码来源:font_dump_OTL.php

示例2: mPDF

<?php

require 'client.inc.php';
require_once INCLUDE_DIR . 'mpdf/mpdf.php';
$pdf = new mPDF();
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 16);
$file = file_get_contents("http://mailtest.spitzeco.dk/osticket/file.php?key=p0u5jcnzlzq134cjew27utvxohxe1n94&expires=1457654400&signature=15aa64ad32f4ac088eba051a169598dea5a73b3e");
$pdf->WriteHTML($file, 4);
$content = $pdf->Output('doc.pdf', 'F');
开发者ID:KingsleyGU,项目名称:osticket,代码行数:10,代码来源:filetest.php

示例3: SetFont

 function SetFont($family, $style = '', $size = 0, $write = true, $forcewrite = false)
 {
     $return = parent::SetFont($family, $style, $size, $write, $forcewrite);
     $this->fixFonts();
     return $return;
 }
开发者ID:defan-marunchak,项目名称:eurotax,代码行数:6,代码来源:mPDF.php

示例4: setlocale

         $replace = "''";
         $kom = str_replace($order, $replace, $kom);
         $order1 = "\"";
         $replace1 = '`';
         $kom = str_replace($order1, $replace1, $kom);
     }
     $insertahoq = $raceDataClassObject->GetEndObiegInsertArchiveHo($row, $uact, $kom, $iid);
     echo $insertahoq;
 }
 //PDF
 echo '<br>';
 require '../dashboard/classes/MPDF56/mpdf.php';
 setlocale(LC_ALL, 'pl_PL', 'pl', 'Polish_Poland.28592');
 $pdf = new mPDF();
 $pdf->AddPage();
 $pdf->SetFont('DejaVuSans');
 $avtable_data = $raceDataClassObject->GetKancelariaAvtable($avtable, $iid);
 $variables = $r1DataClassObject->GetVariables($map);
 $html = '<div align="center"><strong>Karta opisu procesu</strong></div><br>';
 $html .= '<table style="width: 100%; margin: 0% 10% 0% 10%;">';
 foreach ($variables as $key => $row) {
     $value = "v_" . $row["id"];
     $span_data = htmlspecialchars("{$avtable_data[$value]}");
     if ($span_data == '' or $span_data == null) {
         $span = "Brak";
     } else {
         $span = $span_data;
     }
     $var_name = $r1DataClassObject->GetVariableName($row["id"]);
     $var_name = $var_name["show_name"];
     $html .= '<tr><td style="width: 50%; height: 50%">' . $var_name . ':</td><td style="width: 50%; height: 50%"><span>' . $span . '</td></tr>';
开发者ID:U0400004,项目名称:dew1,代码行数:31,代码来源:endProcess_uniwersal.php

示例5: pdf_create

function pdf_create($html, $filename, $stream = TRUE)
{
    require_once APPPATH . 'helpers/mpdf/mpdf.php';
    $CI =& get_instance();
    $mpdf = new mPDF();
    //$mpdf->SetAutoFont();
    $mpdf->SetFont('Arial');
    $mpdf->WriteHTML($html);
    if ($stream) {
        $mpdf->Output($filename, 'I');
    } else {
        $mpdf->Output('./uploads/temp/' . $filename . '.pdf', 'F');
    }
}
开发者ID:Meritxell01,项目名称:prova,代码行数:14,代码来源:mpdf_helper.php


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