printingservices/printerdrivers/general/GENERAL.PD
author Faisal Memon <faisal.memon@nokia.com>
Fri, 14 May 2010 17:03:25 +0100
branchNewGraphicsArchitecture
changeset 67 9c70c0a878c0
parent 0 5d03bc08d59c
permissions -rw-r--r--
Merge 3. Improve performance by switching to less aggressive settings for RI_NUM_TESSELLATED_SEGMENTS and RI_MAX_SAMPLES. Ignored the WIN32 specific API decoration defines when doing the merge. Note the code is now optimised in riPath.cpp to change from RI_NUM_TESSELLATED_SEGMENTS to _QUAD, _CUBIC, _ARC settings which are each now set to 8. SVG Tiger now renders in 5 seconds (15 seconds quicker). The quality of the OVG icons is slightly reduced but still very useable.

! GENERAL.PD
! General printer driver file, supports minimal TTY functionality

Resources Resources
    PreAmble               "<10>"
    PostAmble              "<12>"
    NewPage                "<12><10>"
    IncrementXPos          "*<32>"   
    IncrementYPos          "*<10>"  ! N.B. This moves position 1 pixel 
    CarriageReturn         "<13>"     
EndResources

Translates Translates
EndTranslates

FontInfo Courier 
    MaxNormalCharWidth 1
    Ascent 1
    CodeSection 0:255
	0:1
    EndCodeSection
EndFontInfo

TypefaceFonts Courier
    Name "Mono" Serif
    Translates Translates
    FontHeight
        Height     240
        Normal     Courier
        Bold       Courier
        Italic     Courier
        BoldItalic Courier
        Command    ""
    EndFontHeight
EndTypefaceFonts

Model General
    Name "General" RequiresPrinterPort
	Uid 268435818
    Flags 1
! 1 Landscape not available
    Resources Resources
    KPixelWidth    144000 ! 144 twips = 1/10 in, one character
    KPixelHeight   240000 ! 240  twips = 1/6 in, one line
	PortraitOffset  2 4    ! Pixels
	LandscapeOffset 2 4  
    MinMarginLeft   2      ! Pixels
    MinMarginRight  2
    MinMarginTop    4
    MinMarginBottom 4
    DisplayMode   Gray2
    TypefaceFontss
   	    Courier
    EndTypefaceFontss
EndModel

PdrStoreFile
    PDLName             "GENERAL"
    PDLUid 268435819
    Models
        General
    EndModels
EndPdrStoreFile