Documentation

TimesNewRoman extends AbstractStandard
in package

Pdf standard Times New Roman font class

The values in this class have been forked from ZendPdf's values in the repository's standard font classes: https://github.com/zendframework/ZendPdf/tree/master/library/ZendPdf/Resource/Font/Simple/Standard

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
5.2.0

Table of Contents

Properties

$cmap  : array<string|int, mixed>
Font character map
$glyphWidths  : array<string|int, mixed>
Font glyph widths
$unitsPerEm  : int
Font units per em

Methods

getGlyphWidth()  : mixed
Get character glyph width
getUnitsPerEm()  : int
Get units per em

Properties

$cmap

Font character map

protected array<string|int, mixed> $cmap = [0x20 => 0x1, 0x21 => 0x2, 0x22 => 0x3, 0x23 => 0x4, 0x24 => 0x5, 0x25 => 0x6, 0x26 => 0x7, 0x2019 => 0x8, 0x28 => 0x9, 0x29 => 0xa, 0x2a => 0xb, 0x2b => 0xc, 0x2c => 0xd, 0x2d => 0xe, 0x2e => 0xf, 0x2f => 0x10, 0x30 => 0x11, 0x31 => 0x12, 0x32 => 0x13, 0x33 => 0x14, 0x34 => 0x15, 0x35 => 0x16, 0x36 => 0x17, 0x37 => 0x18, 0x38 => 0x19, 0x39 => 0x1a, 0x3a => 0x1b, 0x3b => 0x1c, 0x3c => 0x1d, 0x3d => 0x1e, 0x3e => 0x1f, 0x3f => 0x20, 0x40 => 0x21, 0x41 => 0x22, 0x42 => 0x23, 0x43 => 0x24, 0x44 => 0x25, 0x45 => 0x26, 0x46 => 0x27, 0x47 => 0x28, 0x48 => 0x29, 0x49 => 0x2a, 0x4a => 0x2b, 0x4b => 0x2c, 0x4c => 0x2d, 0x4d => 0x2e, 0x4e => 0x2f, 0x4f => 0x30, 0x50 => 0x31, 0x51 => 0x32, 0x52 => 0x33, 0x53 => 0x34, 0x54 => 0x35, 0x55 => 0x36, 0x56 => 0x37, 0x57 => 0x38, 0x58 => 0x39, 0x59 => 0x3a, 0x5a => 0x3b, 0x5b => 0x3c, 0x5c => 0x3d, 0x5d => 0x3e, 0x5e => 0x3f, 0x5f => 0x40, 0x2019 => 0x41, 0x61 => 0x42, 0x62 => 0x43, 0x63 => 0x44, 0x64 => 0x45, 0x65 => 0x46, 0x66 => 0x47, 0x67 => 0x48, 0x68 => 0x49, 0x69 => 0x4a, 0x6a => 0x4b, 0x6b => 0x4c, 0x6c => 0x4d, 0x6d => 0x4e, 0x6e => 0x4f, 0x6f => 0x50, 0x70 => 0x51, 0x71 => 0x52, 0x72 => 0x53, 0x73 => 0x54, 0x74 => 0x55, 0x75 => 0x56, 0x76 => 0x57, 0x77 => 0x58, 0x78 => 0x59, 0x79 => 0x5a, 0x7a => 0x5b, 0x7b => 0x5c, 0x7c => 0x5d, 0x7d => 0x5e, 0x7e => 0x5f, 0xa1 => 0x60, 0xa2 => 0x61, 0xa3 => 0x62, 0x2044 => 0x63, 0xa5 => 0x64, 0x192 => 0x65, 0xa7 => 0x66, 0xa4 => 0x67, 0x27 => 0x68, 0x201c => 0x69, 0xab => 0x6a, 0x2039 => 0x6b, 0x203a => 0x6c, 0xfb01 => 0x6d, 0xfb02 => 0x6e, 0x2013 => 0x6f, 0x2021 => 0x70, 0x2021 => 0x71, 0xb7 => 0x72, 0xb6 => 0x73, 0x2022 => 0x74, 0x201a => 0x75, 0x201e => 0x76, 0x201d => 0x77, 0xbb => 0x78, 0x2026 => 0x79, 0x2030 => 0x7a, 0xbf => 0x7b, 0x60 => 0x7c, 0xb4 => 0x7d, 0x2c6 => 0x7e, 0x2dc => 0x7f, 0xaf => 0x80, 0x2d8 => 0x81, 0x2d9 => 0x82, 0xa8 => 0x83, 0x2da => 0x84, 0xb8 => 0x85, 0x2dd => 0x86, 0x2db => 0x87, 0x2c7 => 0x88, 0x2014 => 0x89, 0xc6 => 0x8a, 0xaa => 0x8b, 0x141 => 0x8c, 0xd8 => 0x8d, 0x152 => 0x8e, 0xba => 0x8f, 0xe6 => 0x90, 0x131 => 0x91, 0x142 => 0x92, 0xf8 => 0x93, 0x153 => 0x94, 0xdf => 0x95, 0xcf => 0x96, 0xe9 => 0x97, 0x103 => 0x98, 0x171 => 0x99, 0x11b => 0x9a, 0x178 => 0x9b, 0xf7 => 0x9c, 0xdd => 0x9d, 0xc2 => 0x9e, 0xe1 => 0x9f, 0xdb => 0xa0, 0xfd => 0xa1, 0x219 => 0xa2, 0xea => 0xa3, 0x16e => 0xa4, 0xdc => 0xa5, 0x105 => 0xa6, 0xda => 0xa7, 0x173 => 0xa8, 0xcb => 0xa9, 0x110 => 0xaa, 0xf6c3 => 0xab, 0xa9 => 0xac, 0x112 => 0xad, 0x10d => 0xae, 0xe5 => 0xaf, 0x145 => 0xb0, 0x13a => 0xb1, 0xe0 => 0xb2, 0x162 => 0xb3, 0x106 => 0xb4, 0xe3 => 0xb5, 0x116 => 0xb6, 0x161 => 0xb7, 0x15f => 0xb8, 0xed => 0xb9, 0x25ca => 0xba, 0x158 => 0xbb, 0x122 => 0xbc, 0xfb => 0xbd, 0xe2 => 0xbe, 0x100 => 0xbf, 0x159 => 0xc0, 0xe7 => 0xc1, 0x17b => 0xc2, 0xde => 0xc3, 0x14c => 0xc4, 0x154 => 0xc5, 0x15a => 0xc6, 0x10f => 0xc7, 0x16a => 0xc8, 0x16f => 0xc9, 0xb3 => 0xca, 0xd2 => 0xcb, 0xc0 => 0xcc, 0x102 => 0xcd, 0xd7 => 0xce, 0xfa => 0xcf, 0x164 => 0xd0, 0x2202 => 0xd1, 0xff => 0xd2, 0x143 => 0xd3, 0xee => 0xd4, 0xca => 0xd5, 0xe4 => 0xd6, 0xeb => 0xd7, 0x107 => 0xd8, 0x144 => 0xd9, 0x16b => 0xda, 0x147 => 0xdb, 0xcd => 0xdc, 0xb1 => 0xdd, 0xa6 => 0xde, 0xae => 0xdf, 0x11e => 0xe0, 0x130 => 0xe1, 0x2211 => 0xe2, 0xc8 => 0xe3, 0x155 => 0xe4, 0x14d => 0xe5, 0x179 => 0xe6, 0x17d => 0xe7, 0x2265 => 0xe8, 0xd0 => 0xe9, 0xc7 => 0xea, 0x13c => 0xeb, 0x165 => 0xec, 0x119 => 0xed, 0x172 => 0xee, 0xc1 => 0xef, 0xc4 => 0xf0, 0xe8 => 0xf1, 0x17a => 0xf2, 0x12f => 0xf3, 0xd3 => 0xf4, 0xf3 => 0xf5, 0x101 => 0xf6, 0x15b => 0xf7, 0xef => 0xf8, 0xd4 => 0xf9, 0xd9 => 0xfa, 0x2206 => 0xfb, 0xfe => 0xfc, 0xb2 => 0xfd, 0xd6 => 0xfe, 0xb5 => 0xff, 0xec => 0x100, 0x151 => 0x101, 0x118 => 0x102, 0x111 => 0x103, 0xbe => 0x104, 0x15e => 0x105, 0x13e => 0x106, 0x136 => 0x107, 0x139 => 0x108, 0x2122 => 0x109, 0x117 => 0x10a, 0xcc => 0x10b, 0x12a => 0x10c, 0x13d => 0x10d, 0xbd => 0x10e, 0x2264 => 0x10f, 0xf4 => 0x110, 0xf1 => 0x111, 0x170 => 0x112, 0xc9 => 0x113, 0x113 => 0x114, 0x11f => 0x115, 0xbc => 0x116, 0x160 => 0x117, 0x218 => 0x118, 0x150 => 0x119, 0xb0 => 0x11a, 0xf2 => 0x11b, 0x10c => 0x11c, 0xf9 => 0x11d, 0x221a => 0x11e, 0x10e => 0x11f, 0x157 => 0x120, 0xd1 => 0x121, 0xf5 => 0x122, 0x156 => 0x123, 0x13b => 0x124, 0xc3 => 0x125, 0x104 => 0x126, 0xc5 => 0x127, 0xd5 => 0x128, 0x17c => 0x129, 0x11a => 0x12a, 0x12e => 0x12b, 0x137 => 0x12c, 0x2212 => 0x12d, 0xce => 0x12e, 0x148 => 0x12f, 0x163 => 0x130, 0xac => 0x131, 0xf6 => 0x132, 0xfc => 0x133, 0x2260 => 0x134, 0x123 => 0x135, 0xf0 => 0x136, 0x17e => 0x137, 0x146 => 0x138, 0xb9 => 0x139, 0x12b => 0x13a, 0x20ac => 0x13b]

$glyphWidths

Font glyph widths

protected array<string|int, mixed> $glyphWidths = [0x0 => 0x1f4, 0x1 => 0xfa, 0x2 => 0x14d, 0x3 => 0x198, 0x4 => 0x1f4, 0x5 => 0x1f4, 0x6 => 0x341, 0x7 => 0x30a, 0x8 => 0x14d, 0x9 => 0x14d, 0xa => 0x14d, 0xb => 0x1f4, 0xc => 0x234, 0xd => 0xfa, 0xe => 0x14d, 0xf => 0xfa, 0x10 => 0x116, 0x11 => 0x1f4, 0x12 => 0x1f4, 0x13 => 0x1f4, 0x14 => 0x1f4, 0x15 => 0x1f4, 0x16 => 0x1f4, 0x17 => 0x1f4, 0x18 => 0x1f4, 0x19 => 0x1f4, 0x1a => 0x1f4, 0x1b => 0x116, 0x1c => 0x116, 0x1d => 0x234, 0x1e => 0x234, 0x1f => 0x234, 0x20 => 0x1bc, 0x21 => 0x399, 0x22 => 0x2d2, 0x23 => 0x29b, 0x24 => 0x29b, 0x25 => 0x2d2, 0x26 => 0x263, 0x27 => 0x22c, 0x28 => 0x2d2, 0x29 => 0x2d2, 0x2a => 0x14d, 0x2b => 0x185, 0x2c => 0x2d2, 0x2d => 0x263, 0x2e => 0x379, 0x2f => 0x2d2, 0x30 => 0x2d2, 0x31 => 0x22c, 0x32 => 0x2d2, 0x33 => 0x29b, 0x34 => 0x22c, 0x35 => 0x263, 0x36 => 0x2d2, 0x37 => 0x2d2, 0x38 => 0x3b0, 0x39 => 0x2d2, 0x3a => 0x2d2, 0x3b => 0x263, 0x3c => 0x14d, 0x3d => 0x116, 0x3e => 0x14d, 0x3f => 0x1d5, 0x40 => 0x1f4, 0x41 => 0x14d, 0x42 => 0x1bc, 0x43 => 0x1f4, 0x44 => 0x1bc, 0x45 => 0x1f4, 0x46 => 0x1bc, 0x47 => 0x14d, 0x48 => 0x1f4, 0x49 => 0x1f4, 0x4a => 0x116, 0x4b => 0x116, 0x4c => 0x1f4, 0x4d => 0x116, 0x4e => 0x30a, 0x4f => 0x1f4, 0x50 => 0x1f4, 0x51 => 0x1f4, 0x52 => 0x1f4, 0x53 => 0x14d, 0x54 => 0x185, 0x55 => 0x116, 0x56 => 0x1f4, 0x57 => 0x1f4, 0x58 => 0x2d2, 0x59 => 0x1f4, 0x5a => 0x1f4, 0x5b => 0x1bc, 0x5c => 0x1e0, 0x5d => 0xc8, 0x5e => 0x1e0, 0x5f => 0x21d, 0x60 => 0x14d, 0x61 => 0x1f4, 0x62 => 0x1f4, 0x63 => 0xa7, 0x64 => 0x1f4, 0x65 => 0x1f4, 0x66 => 0x1f4, 0x67 => 0x1f4, 0x68 => 0xb4, 0x69 => 0x1bc, 0x6a => 0x1f4, 0x6b => 0x14d, 0x6c => 0x14d, 0x6d => 0x22c, 0x6e => 0x22c, 0x6f => 0x1f4, 0x70 => 0x1f4, 0x71 => 0x1f4, 0x72 => 0xfa, 0x73 => 0x1c5, 0x74 => 0x15e, 0x75 => 0x14d, 0x76 => 0x1bc, 0x77 => 0x1bc, 0x78 => 0x1f4, 0x79 => 0x3e8, 0x7a => 0x3e8, 0x7b => 0x1bc, 0x7c => 0x14d, 0x7d => 0x14d, 0x7e => 0x14d, 0x7f => 0x14d, 0x80 => 0x14d, 0x81 => 0x14d, 0x82 => 0x14d, 0x83 => 0x14d, 0x84 => 0x14d, 0x85 => 0x14d, 0x86 => 0x14d, 0x87 => 0x14d, 0x88 => 0x14d, 0x89 => 0x3e8, 0x8a => 0x379, 0x8b => 0x114, 0x8c => 0x263, 0x8d => 0x2d2, 0x8e => 0x379, 0x8f => 0x136, 0x90 => 0x29b, 0x91 => 0x116, 0x92 => 0x116, 0x93 => 0x1f4, 0x94 => 0x2d2, 0x95 => 0x1f4, 0x96 => 0x14d, 0x97 => 0x1bc, 0x98 => 0x1bc, 0x99 => 0x1f4, 0x9a => 0x1bc, 0x9b => 0x2d2, 0x9c => 0x234, 0x9d => 0x2d2, 0x9e => 0x2d2, 0x9f => 0x1bc, 0xa0 => 0x2d2, 0xa1 => 0x1f4, 0xa2 => 0x185, 0xa3 => 0x1bc, 0xa4 => 0x2d2, 0xa5 => 0x2d2, 0xa6 => 0x1bc, 0xa7 => 0x2d2, 0xa8 => 0x1f4, 0xa9 => 0x263, 0xaa => 0x2d2, 0xab => 0xfa, 0xac => 0x2f8, 0xad => 0x263, 0xae => 0x1bc, 0xaf => 0x1bc, 0xb0 => 0x2d2, 0xb1 => 0x116, 0xb2 => 0x1bc, 0xb3 => 0x263, 0xb4 => 0x29b, 0xb5 => 0x1bc, 0xb6 => 0x263, 0xb7 => 0x185, 0xb8 => 0x185, 0xb9 => 0x116, 0xba => 0x1d7, 0xbb => 0x29b, 0xbc => 0x2d2, 0xbd => 0x1f4, 0xbe => 0x1bc, 0xbf => 0x2d2, 0xc0 => 0x14d, 0xc1 => 0x1bc, 0xc2 => 0x263, 0xc3 => 0x22c, 0xc4 => 0x2d2, 0xc5 => 0x29b, 0xc6 => 0x22c, 0xc7 => 0x24c, 0xc8 => 0x2d2, 0xc9 => 0x1f4, 0xca => 0x12c, 0xcb => 0x2d2, 0xcc => 0x2d2, 0xcd => 0x2d2, 0xce => 0x234, 0xcf => 0x1f4, 0xd0 => 0x263, 0xd1 => 0x1dc, 0xd2 => 0x1f4, 0xd3 => 0x2d2, 0xd4 => 0x116, 0xd5 => 0x263, 0xd6 => 0x1bc, 0xd7 => 0x1bc, 0xd8 => 0x1bc, 0xd9 => 0x1f4, 0xda => 0x1f4, 0xdb => 0x2d2, 0xdc => 0x14d, 0xdd => 0x234, 0xde => 0xc8, 0xdf => 0x2f8, 0xe0 => 0x2d2, 0xe1 => 0x14d, 0xe2 => 0x258, 0xe3 => 0x263, 0xe4 => 0x14d, 0xe5 => 0x1f4, 0xe6 => 0x263, 0xe7 => 0x263, 0xe8 => 0x225, 0xe9 => 0x2d2, 0xea => 0x29b, 0xeb => 0x116, 0xec => 0x146, 0xed => 0x1bc, 0xee => 0x2d2, 0xef => 0x2d2, 0xf0 => 0x2d2, 0xf1 => 0x1bc, 0xf2 => 0x1bc, 0xf3 => 0x116, 0xf4 => 0x2d2, 0xf5 => 0x1f4, 0xf6 => 0x1bc, 0xf7 => 0x185, 0xf8 => 0x116, 0xf9 => 0x2d2, 0xfa => 0x2d2, 0xfb => 0x264, 0xfc => 0x1f4, 0xfd => 0x12c, 0xfe => 0x2d2, 0xff => 0x1f4, 0x100 => 0x116, 0x101 => 0x1f4, 0x102 => 0x263, 0x103 => 0x1f4, 0x104 => 0x2ee, 0x105 => 0x22c, 0x106 => 0x158, 0x107 => 0x2d2, 0x108 => 0x263, 0x109 => 0x3d4, 0x10a => 0x1bc, 0x10b => 0x14d, 0x10c => 0x14d, 0x10d => 0x263, 0x10e => 0x2ee, 0x10f => 0x225, 0x110 => 0x1f4, 0x111 => 0x1f4, 0x112 => 0x2d2, 0x113 => 0x263, 0x114 => 0x1bc, 0x115 => 0x1f4, 0x116 => 0x2ee, 0x117 => 0x22c, 0x118 => 0x22c, 0x119 => 0x2d2, 0x11a => 0x190, 0x11b => 0x1f4, 0x11c => 0x29b, 0x11d => 0x1f4, 0x11e => 0x1c5, 0x11f => 0x2d2, 0x120 => 0x14d, 0x121 => 0x2d2, 0x122 => 0x1f4, 0x123 => 0x29b, 0x124 => 0x263, 0x125 => 0x2d2, 0x126 => 0x2d2, 0x127 => 0x2d2, 0x128 => 0x2d2, 0x129 => 0x1bc, 0x12a => 0x263, 0x12b => 0x14d, 0x12c => 0x1f4, 0x12d => 0x234, 0x12e => 0x14d, 0x12f => 0x1f4, 0x130 => 0x116, 0x131 => 0x234, 0x132 => 0x1f4, 0x133 => 0x1f4, 0x134 => 0x225, 0x135 => 0x1f4, 0x136 => 0x1f4, 0x137 => 0x1bc, 0x138 => 0x1f4, 0x139 => 0x12c, 0x13a => 0x116, 0x13b => 0x1f4]

$unitsPerEm

Font units per em

protected int $unitsPerEm = 1000

Methods

getGlyphWidth()

Get character glyph width

public getGlyphWidth(int $code) : mixed
Parameters
$code : int

getUnitsPerEm()

Get units per em

public getUnitsPerEm() : int
Return values
int

        
On this page

Search results