printingservices/printerdrivers/general/GENERAL.PD
author Faisal Memon <faisal.memon@nokia.com>
Fri, 22 Oct 2010 10:13:49 +0100
branchbug235_bringup_0
changeset 202 5b9bcf58d962
parent 0 5d03bc08d59c
permissions -rw-r--r--
Add vgClear code to get drawing on screen

! 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