点击回首页
我的浏览记录 | | 帮助?
当前位置:
首页>> 企业应用>> 新翔网络OA系统V1.0>> 源文件浏览
[商业版 200RMB] WebForm,下载次数:1 次 | 关键字: PHP MYSQL OA 办公 网络办公

源码截图

源码目录树

;
当前路径:Classes/PHPExcel/Shared/Font.php
<?php
/**
 * PHPExcel
 *
 * Copyright (c) 2006 - 2015 PHPExcel
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * @category   PHPExcel
 * @package    PHPExcel_Shared
 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
 * @version    ##VERSION##, ##DATE##
 */


/**
 * PHPExcel_Shared_Font
 *
 * @category   PHPExcel
 * @package    PHPExcel_Shared
 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
 */
class PHPExcel_Shared_Font
{
    /* Methods for resolving autosize value */
    const AUTOSIZE_METHOD_APPROX    = 'approx';
    const AUTOSIZE_METHOD_EXACT     = 'exact';

    private static $autoSizeMethods = array(
        self::AUTOSIZE_METHOD_APPROX,
        self::AUTOSIZE_METHOD_EXACT,
    );

    /** Character set codes used by BIFF5-8 in Font records */
    const CHARSET_ANSI_LATIN                = 0x00;
    const CHARSET_SYSTEM_DEFAULT            = 0x01;
    const CHARSET_SYMBOL                    = 0x02;
    const CHARSET_APPLE_ROMAN               = 0x4D;
    const CHARSET_ANSI_JAPANESE_SHIFTJIS    = 0x80;
    const CHARSET_ANSI_KOREAN_HANGUL        = 0x81;
    const CHARSET_ANSI_KOREAN_JOHAB         = 0x82;
    const CHARSET_ANSI_CHINESE_SIMIPLIFIED  = 0x86;        //    gb2312
    const CHARSET_ANSI_CHINESE_TRADITIONAL  = 0x88;        //    big5
    const CHARSET_ANSI_GREEK                = 0xA1;
    const CHARSET_ANSI_TURKISH              = 0xA2;
    const CHARSET_ANSI_VIETNAMESE           = 0xA3;
    const CHARSET_ANSI_HEBREW               = 0xB1;
    const CHARSET_ANSI_ARABIC               = 0xB2;
    const CHARSET_ANSI_BALTIC               = 0xBA;
    const CHARSET_ANSI_CYRILLIC             = 0xCC;
    const CHARSET_ANSI_THAI                 = 0xDD;
    const CHARSET_ANSI_LATIN_II             = 0xEE;
    const CHARSET_OEM_LATIN_I               = 0xFF;

    //  XXX: Constants created!
    /** Font filenames */
    const ARIAL                             = 'arial.ttf';
    const ARIAL_BOLD                        = 'arialbd.ttf';
    const ARIAL_ITALIC                      = 'ariali.ttf';
    const ARIAL_BOLD_ITALIC                 = 'arialbi.ttf';

    const CALIBRI                           = 'CALIBRI.TTF';
    const CALIBRI_BOLD                      = 'CALIBRIB.TTF';
    const CALIBRI_ITALIC                    = 'CALIBRII.TTF';
    const CALIBRI_BOLD_ITALIC               = 'CALIBRIZ.TTF';

    const COMIC_SANS_MS                     = 'comic.ttf';
    const COMIC_SANS_MS_BOLD                = 'comicbd.ttf';

    const COURIER_NEW                       = 'cour.ttf';
    const COURIER_NEW_BOLD                  = 'courbd.ttf';
    const COURIER_NEW_ITALIC                = 'couri.ttf';
    const COURIER_NEW_BOLD_ITALIC           = 'courbi.ttf';

    const GEORGIA                           = 'georgia.ttf';
    const GEORGIA_BOLD                      = 'georgiab.ttf';
    const GEORGIA_ITALIC                    = 'georgiai.ttf';
    const GEORGIA_BOLD_ITALIC               = 'georgiaz.ttf';

    const IMPACT                            = 'impact.ttf';

    const LIBERATION_SANS                   = 'LiberationSans-Regular.ttf';
    const LIBERATION_SANS_BOLD              = 'LiberationSans-Bold.ttf';
    const LIBERATION_SANS_ITALIC            = 'LiberationSans-Italic.ttf';
    const LIBERATION_SANS_BOLD_ITALIC       = 'LiberationSans-BoldItalic.ttf';

    const LUCIDA_CONSOLE                    = 'lucon.ttf';
    const LUCIDA_SANS_UNICODE               = 'l_10646.ttf';

    const MICROSOFT_SANS_SERIF              = 'micross.ttf';

    const PALATINO_LINOTYPE                 = 'pala.ttf';
    const PALATINO_LINOTYPE_BOLD            = 'palab.ttf';
    const PALATINO_LINOTYPE_ITALIC          = 'palai.ttf';
    const PALATINO_LINOTYPE_BOLD_ITALIC     = 'palabi.ttf';

    const SYMBOL                            = 'symbol.ttf';

    const TAHOMA                            = 'tahoma.ttf';
    const TAHOMA_BOLD                       = 'tahomabd.ttf';

    const TIMES_NEW_ROMAN                   = 'times.ttf';
    const TIMES_NEW_ROMAN_BOLD              = 'timesbd.ttf';
    const TIMES_NEW_ROMAN_ITALIC            = 'timesi.ttf';
    const TIMES_NEW_ROMAN_BOLD_ITALIC       = 'timesbi.ttf';

    const TREBUCHET_MS                      = 'trebuc.ttf';
    const TREBUCHET_MS_BOLD                 = 'trebucbd.ttf';
    const TREBUCHET_MS_ITALIC               = 'trebucit.ttf';
    const TREBUCHET_MS_BOLD_ITALIC          = 'trebucbi.ttf';

    const VERDANA                           = 'verdana.ttf';
    const VERDANA_BOLD                      = 'verdanab.ttf';
    const VERDANA_ITALIC                    = 'verdanai.ttf';
    const VERDANA_BOLD_ITALIC               = 'verdanaz.ttf';

    /**
     * AutoSize method
     *
     * @var string
     */
    private static $autoSizeMethod = self::AUTOSIZE_METHOD_APPROX;

    /**
     * Path to folder containing TrueType font .ttf files
     *
     * @var string
     */
    private static $trueTypeFontPath = null;

    /**
     * How wide is a default column for a given default font and size?
     * Empirical data found by inspecting real Excel files and reading off the pixel width
...
完整源码文件,请先购买后再查看
关于我们 | 顾问团队 | 发展历程 | 联系我们 | 源码上传
联系电话(Tel):4008-010-151(免长途)
地址:北京市海淀区大恒科技大厦五层 邮编:100080
Floor 5th,Daheng Building,Zhongguancun,Beijing,China,100080
51Aspx.com 版权所有 CopyRight © 2006-2022. 京ICP备09089570号 | 京公网安备11010702000869号