class-TCPDF_FONTS

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Class TCPDF_FONTS

Package: com\tecnick\tcpdf
Author: Nicola Asuni - info@tecnick.com
Version: 1.1.0
Class:

TCPDF_FONTS Font methods for TCPDF library.


Located at include/tcpdf_fonts.php
Methods summary
public static (string)
# addTTFfont( $fontfile, $fonttype = '', $enc = '', $flags = 32, $outpath = '', $platid = 3, $encid = 1, $addcbbox = false, $link = false )

Convert and add the selected TrueType or Type1 font to the fonts folder (that must be writeable).

public static integer
# _getTTFtableChecksum( $table, $length )

Returs the checksum of a TTF table.

public static (string)
# _getTrueTypeFontSubset( $font, $subsetchars )

Returns a subset of the TrueType font data without the unused glyphs.

public static PDF
# _putfontwidths( $font, $cidoffset = 0 )

Outputs font widths

public static (string)
# updateCIDtoGIDmap( $map, $cid, $gid )

Update the CIDToGIDMap string with a new value.

public static string
# _getfontpath( )

Return fonts path

public static string
# getFontFullPath( $file, $fontdir = false )

Return font full path

public static float
# getFontRefSize( $size, $refsize = 12 )

Get a reference font size.

public static Returns
# unichr( $c, $unicode = true )

Returns the unicode caracter specified by the value

public static Returns
# unichrUnicode( $c )

Returns the unicode caracter specified by UTF-8 value

public static Returns
# unichrASCII( $c )

Returns the unicode caracter specified by ASCII value

public static string
# arrUTF8ToUTF16BE( $unicode, $setbom = false )

Converts array of UTF-8 characters to UTF16-BE string.
Based on: http://www.faqs.org/rfcs/rfc2781.html

<

pre> Encoding UTF-16:

public static Return
# UTF8ArrayToUniArray( $ta, $isunicode = true )

Convert an array of UTF8 values to array of unicode characters

public static Return
# UTF8ArrSubString( $strarr, $start = '', $end = '', $unicode = true )

Extract a slice of the $strarr array and return it as string.

public static Return
# UniArrSubString( $uniarr, $start = '', $end = '' )

Extract a slice of the $uniarr array and return it as string.

public static array
# UTF8ArrToLatin1Arr( $unicode )

Converts UTF-8 characters array to array of Latin1 characters array

public static array
# UTF8ArrToLatin1( $unicode )

Converts UTF-8 characters array to array of Latin1 string

public static integer
# uniord( $uch )

Converts UTF-8 character to integer value.
Uses the getUniord() method if the value is not cached.

public static integer
# getUniord( $uch )

Converts UTF-8 character to integer value.
Invalid byte sequences will be replaced with 0xFFFD (replacement character)
Based on: http://www.faqs.org/rfcs/rfc3629.html

<

pre> Char. number range | UTF-8 octet sequence (hexadecimal) | (binary) --------------------+----------------------------------------------- 0000 0000-0000 007F | 0xxxxxxx 0000 0080-0000 07FF | 110xxxxx 10xxxxxx 0000 0800-0000 FFFF | 1110xxxx 10xxxxxx 10xxxxxx 0001 0000-0010 FFFF | 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx


public static array
# UTF8StringToArray( $str, $isunicode, & $currentfont )

Converts UTF-8 strings to codepoints array.
Invalid byte sequences will be replaced with 0xFFFD (replacement character)

public static string
# UTF8ToLatin1( $str, $isunicode, & $currentfont )

Converts UTF-8 strings to Latin1 when using the standard 14 core fonts.

public static string
# UTF8ToUTF16BE( $str, $setbom, $isunicode, & $currentfont )

Converts UTF-8 strings to UTF16-BE.

public static string
# utf8StrRev( $str, $setbom, $forcertl, $isunicode, & $currentfont )

Reverse the RLT substrings using the Bidirectional Algorithm (http://unicode.org/reports/tr9/).

public static string
# utf8StrArrRev( $arr, $str, $setbom, $forcertl, $isunicode, & $currentfont )

Reverse the RLT substrings array using the Bidirectional Algorithm (http://unicode.org/reports/tr9/).

public static array
# utf8Bidi( $ta, $str, $forcertl, $isunicode, & $currentfont )

Reverse the RLT substrings using the Bidirectional Algorithm (http://unicode.org/reports/tr9/).

Properties summary
protected static array $cache_uniord

Static cache used for speed up uniord performances

# array()
 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy