GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PDF::API3::COMPAT::API2::BASIC::TTF::OS_2 (3)

.ds Aq ’

NAME

PDF::API3::Compat::API2::Basic::TTF::OS_2 - the OS/2 table in a TTF font

CONTENTS

DESCRIPTION

The OS/2 table has two versions and forms, one an extension of the other. This module supports both forms and the switching between them.

INSTANCE VARIABLES

No other variables than those in table and those in the standard:



    Version
    xAvgCharWidth
    usWeightClass
    usWidthClass
    fsType
    ySubscriptXSize
    ySubScriptYSize
    ySubscriptXOffset
    ySubscriptYOffset
    ySuperscriptXSize
    ySuperscriptYSize
    ySuperscriptXOffset
    ySuperscriptYOffset
    yStrikeoutSize
    yStrikeoutPosition
    sFamilyClass
    bFamilyType
    bSerifStyle
    bWeight
    bProportion
    bContrast
    bStrokeVariation
    bArmStyle
    bLetterform
    bMidline
    bXheight
    ulUnicodeRange1
    ulUnicodeRange2
    ulUnicodeRange3
    ulUnicodeRange4
    achVendID
    fsSelection
    usFirstCharIndex
    usLastCharIndex
    sTypoAscender
    sTypoDescender
    sTypoLineGap
    usWinAscent
    usWinDescent
    ulCodePageRange1
    ulCodePageRange2
    xHeight
    CapHeight
    defaultChar
    breakChar
    maxLookups



Notice that versions 0, 1 & 2 of the table are supported. Notice also that the Panose variable has been broken down into its elements.

METHODS

CW$t->read

Reads in the various values from disk (see details of OS/2 table)

CW$t->out($fh)

Writes the table to a file either from memory or by copying.

CW$t->XML_element($context, CW$depth, CW$key, CW$value)

Tidies up the hex values to output them in hex

CW$t->XML_end($context, CW$tag, CW%attrs)

Now handle them on the way back in

CW$t->update

Updates the OS/2 table by getting information from other sources:

Updates the firstChar and lastChar values based on the MS table in the cmap.

Updates the sTypoAscender, sTypoDescender & sTypoLineGap to be the same values as Ascender, Descender and Linegap from the hhea table (assuming it is dirty) and also sets usWinAscent to be the sum of Ascender+Linegap and usWinDescent to be the negative of Descender.

BUGS

None known

AUTHOR

Martin Hosken Martin_Hosken@sil.org. See PDF::API3::Compat::API2::Basic::TTF::Font for copyright and licensing.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PDF::API3::COMPAT::API2::BASIC::TTF::OS_2 (3) 2009-04-21

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.