*%
*% Copyright (c) 2000 EPSON Europe B.V.
*% All Rights Reserved.
*%
*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "1.0"
*GPDFileName: "EPFX980.GPD"
*ModelName: "Epson FX-980"
*MasterUnits: PAIR(720, 432)
*ResourceDLL: "EP9BRES.DLL"
*PrintRate: 506
*PrintRateUnit: CPS
*PrinterType: SERIAL
*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
    }
    *Option: LANDSCAPE_CC270
    {
        *rcNameID: =LANDSCAPE_DISPLAY
    }
}
*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: MANUAL
    *Option: MANUAL
    {
        *rcNameID: =MANUAL_FEED_DISPLAY
    }
    *Option: Option2
    {
        *rcNameID: 267
        *OptionID: 267
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B19>4<1B19>1"
        }
    }
    *Option: Option3
    {
        *rcNameID: 268
        *OptionID: 268
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B19>4<1B19>2"
        }
    }
    *Option: TRACTOR
    {
        *rcNameID: =TRACTOR_DISPLAY
    }
}
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option2
    *Option: Option1
    {
        *Name: "240 x 144 " =DOTS_PER_INCH
        *DPI: PAIR(240, 144)
        *TextDPI: PAIR(240, 144)
        *PinsPerLogPass: 16
        *PinsPerPhysPass: 8
        EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
        *SpotDiameter: 170
        *Command: CmdSendBlockData { *Cmd : "<1B>*<03>" %l{NumOfDataBytes} }
    }
    *Option: Option2
    {
        *Name: "120 x 72 " =DOTS_PER_INCH
        *DPI: PAIR(120, 72)
        *TextDPI: PAIR(120, 72)
        *PinsPerLogPass: 8
        *PinsPerPhysPass: 8
        EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
        *SpotDiameter: 100
        *Command: CmdSendBlockData { *Cmd : "<1B>*<01>" %l{NumOfDataBytes} }
    }
    *Option: Option3
    {
        *Name: "120 x 144 " =DOTS_PER_INCH
        *DPI: PAIR(120, 144)
        *TextDPI: PAIR(120, 144)
        *PinsPerLogPass: 16
        *PinsPerPhysPass: 8
        EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
        *SpotDiameter: 140
        *Command: CmdSendBlockData { *Cmd : "<1B>*<01>" %l{NumOfDataBytes} }
    }
}
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: A4
    *Option: Fanfold_210x305
    {
        *rcNameID: 260
        *OptionID: 260
        *PageDimensions: PAIR(5952, 5184)
        *PrintableArea: PAIR(5754, 4896)
        *PrintableOrigin: PAIR(85, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(5751, 4896)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(5748, 4896)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(5748, 4896)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<0200>@<141B>(c<04000000>@<14>"
        }
    }
    *Option: A4_Fanfold
    {
        *rcNameID: 259
        *OptionID: 259
        *PageDimensions: PAIR(5952, 5040)
        *PrintableArea: PAIR(5754, 4896)
        *PrintableOrigin: PAIR(85, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(5751, 4896)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(5748, 4896)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(5748, 4896)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<0200B0131B>(c<04000000B013>"
        }
    }
    *Option: Letter_fanfold
    {
        *rcNameID: 258
        *OptionID: 258
        *PageDimensions: PAIR(6120, 4752)
        *PrintableArea: PAIR(5752, 4464)
        *PrintableOrigin: PAIR(85, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(5748, 4464)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(5742, 4464)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(5742, 4464)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<020090121B>(c<040000009012>"
        }
    }
    *Option: FANFOLD_STD_GERMAN
    {
        *rcNameID: =FANFOLD_STD_GERMAN_DISPLAY
        *PrintableArea: PAIR(5752, 4896)
        *PrintableOrigin: PAIR(85, 0)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(5748, 4896)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(5742, 4896)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(5742, 4896)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<0200>@<141B>(c<04000000>@<14>"
        }
    }
    *Option: FANFOLD_LGL_GERMAN
    {
        *rcNameID: =FANFOLD_LGL_GERMAN_DISPLAY
        *PrintableArea: PAIR(5752, 5472)
        *PrintableOrigin: PAIR(85, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(5748, 5472)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(5742, 5472)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(5742, 5472)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<0200F0151B>(c<04000000F015>"
        }
    }
    *Option: LETTER
    {
        *rcNameID: =LETTER_DISPLAY
        *PrintableArea: PAIR(5752, 4608)
        *PrintableOrigin: PAIR(85, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(5748, 4608)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(5742, 4608)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(5742, 4608)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<020090121B>(c<0400>H<00>H<12>"
        }
    }
    *Option: LEGAL
    {
        *rcNameID: =LEGAL_DISPLAY
        *PrintableArea: PAIR(5752, 5904)
        *PrintableOrigin: PAIR(85, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(5748, 5904)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(5742, 5904)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(5742, 5904)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<0200A0171B>(c<0400>H<00>X<17>"
        }
    }
    *Option: A4
    {
        *rcNameID: =A4_DISPLAY
        *PrintableArea: PAIR(5756, 4906)
        *PrintableOrigin: PAIR(85, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(5754, 4905)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(5748, 4902)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(5748, 4905)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<0200BA131B>(c<0400>H<00>r<13>"
        }
    }
    *Option: A5
    {
        *rcNameID: =A5_DISPLAY
        *PrintableArea: PAIR(4028, 3429)
        *PrintableOrigin: PAIR(85, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(4026, 3429)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(4020, 3426)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(4020, 3429)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<0200F50D1B>(c<0400>H<00AD0D>"
        }
    }
    *Option: B4
    {
        *rcNameID: =B4_DISPLAY
        *PrintableArea: PAIR(5760, 6047)
        *PrintableOrigin: PAIR(0, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(5760, 6045)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(5760, 6042)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(5760, 6045)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<0200>/<181B>(c<0400>H<00E717>"
        }
    }
    *Option: B5
    {
        *rcNameID: =B5_DISPLAY
        *PrintableArea: PAIR(4992, 4228)
        *PrintableOrigin: PAIR(85, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(4989, 4227)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(4986, 4224)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(4986, 4227)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<020014111B>(c<0400>H<00CC10>"
        }
    }
    *Option: STATEMENT
    {
        *rcNameID: =STATEMENT_DISPLAY
        *PrintableArea: PAIR(3790, 3528)
        *PrintableOrigin: PAIR(85, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(3786, 3528)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(3780, 3528)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(3780, 3528)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<0200>X<0E1B>(c<0400>H<00100E>"
        }
    }
    *Option: Env_34
    {
        *rcNameID: 261
        *OptionID: 261
        *PageDimensions: PAIR(4680, 1563)
        *PrintableArea: PAIR(4510, 1419)
        *PrintableOrigin: PAIR(85, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(4506, 1419)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(4500, 1416)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(4500, 1419)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<02001B061B>(c<0400>H<00D305>"
        }
    }
    *Option: Env_10
    {
        *rcNameID: 262
        *OptionID: 262
        *PageDimensions: PAIR(6840, 1780)
        *PrintableArea: PAIR(5707, 1636)
        *PrintableOrigin: PAIR(85, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(5703, 1635)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(5700, 1632)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(5700, 1635)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<0200F4061B>(c<0400>H<00AC06>"
        }
    }
    *Option: Env_DL
    {
        *rcNameID: 263
        *OptionID: 263
        *PageDimensions: PAIR(6236, 1870)
        *PrintableArea: PAIR(5754, 1726)
        *PrintableOrigin: PAIR(85, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(5751, 1725)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(5748, 1722)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(5748, 1725)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<0200>N<071B>(c<0400>H<000607>"
        }
    }
    *Option: Env_C5
    {
        *rcNameID: 264
        *OptionID: 264
        *PageDimensions: PAIR(6491, 2755)
        *PrintableArea: PAIR(5754, 2611)
        *PrintableOrigin: PAIR(85, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(5751, 2610)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(5748, 2610)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(5748, 2610)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<0200C30A1B>(c<0400>H<00>{<0A>"
        }
    }
    *Option: Card_148x105
    {
        *rcNameID: 265
        *OptionID: 265
        *PageDimensions: PAIR(4195, 1785)
        *PrintableArea: PAIR(4025, 1641)
        *PrintableOrigin: PAIR(85, 72)
        *switch: Resolution
        {
            *case: Option1
            {
                *PrintableArea: PAIR(4023, 1641)
                *PrintableOrigin: PAIR(87, 72)
            }
            *case: Option2
            {
                *PrintableArea: PAIR(4020, 1638)
                *PrintableOrigin: PAIR(90, 72)
            }
            *case: Option3
            {
                *PrintableArea: PAIR(4020, 1641)
                *PrintableOrigin: PAIR(90, 72)
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<0200F9061B>(c<0400>H<00B106>"
        }
    }
    *Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(2880, 1554)
        *MaxSize: PAIR(7200, 9504)
        *MaxPrintableWidth: 5760
        *MinLeftMargin: 85
        *CenterPrintable?: FALSE
        *TopMargin: 72
        *BottomMargin: 72
        *CustCursorOriginX: %d{85}
        *CustCursorOriginY: %d{72}
        *CustPrintableOriginX: %d{85}
        *CustPrintableOriginY: %d{72}
        *CustPrintableSizeX: %d{PhysPaperWidth-170}
        *CustPrintableSizeY: %d{PhysPaperLength-144}
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>(C<0200>" %l{PhysPaperLength }"<1B>(c<0400>H<00>" %l{PhysPaperLength }
        }
    }
}
*Feature: PrintQuality
{
    *rcNameID: =TEXT_QUALITY_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *rcNameID: 269
    }
    *Option: Option2
    {
        *rcNameID: 270
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>U<00>"
        }
    }
    *Option: Option3
    {
        *rcNameID: 271
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>U<01>"
        }
    }
}
*Feature: FontSupport
{
    *FeatureType: PRINTER_PROPERTY
    *rcNameID: 272
    *DefaultOption: Standard
    *Option: Standard
    {
        *rcNameID: 273
    }
    *Option: NLSP
    {
        *rcNameID: 274
    }
    *Option: NoFont
    {
        *rcNameID: =NONE_DISPLAY
    }
}
*Feature: Halftone
{
    *rcNameID: =HALFTONING_DISPLAY
    *DefaultOption: HT_PATSIZE_AUTO
    *Option: HT_PATSIZE_AUTO
    {
        *rcNameID: =HT_AUTO_SELECT_DISPLAY
    }
    *Option: HT_PATSIZE_SUPERCELL_M
    {
        *rcNameID: =HT_SUPERCELL_DISPLAY
    }
    *Option: HT_PATSIZE_6x6_M
    {
        *rcNameID: =HT_DITHER6X6_DISPLAY
    }
    *Option: HT_PATSIZE_8x8_M
    {
        *rcNameID: =HT_DITHER8X8_DISPLAY
    }
}
*Command: CmdStartDoc
{
    *Order: DOC_SETUP.1
    *Cmd: "<1B>@<0D1B>t<011B>6<1B>R<001B>P<121B>(U<01000A>"
+   "<1B>(t<0300010100><1B>t<01>"
}
*Command: CmdStartPage
{
    *Order: PAGE_SETUP.1
    *Cmd: "<0D>"
}
*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
    *Cmd: "<1B>@<0D>"
}
*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
    }
    *case: LANDSCAPE_CC270
    {
        *TextCaps: LIST(TC_RA_ABLE)
    }
}
*CursorXAfterCR: AT_CURSOR_X_ORIGIN
*YMoveAttributes: LIST(SEND_CR_FIRST)
*MaxLineSpacing: 255
*XMoveThreshold: 0
*YMoveThreshold: *
*XMoveUnit: 60
*YMoveUnit: 216
*Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 12) } }
*Command: CmdXMoveRelRight { *Cmd : "<1B>\" %l{(DestXRel / 6) } }
*Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
*Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
*Command: CmdCR { *Cmd : "<0D>" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "<0C>" }
*Command: CmdBackSpace { *Cmd : "<08>" }
*Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
*Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
*EjectPageWithFF?: TRUE
*OutputDataFormat: V_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_END
*CursorYAfterSendBlockData: NO_MOVE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *switch: FontSupport
        {
                *case: Standard
                {
                       *DefaultFont: 3
                       *DefaultCTT: 1
                       *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,
+                      15,16,17,18,19,20,21,22,23,24,25,26,27,28,29)
                }
                *case: NLSP
                {
                       *DefaultFont: 32
                       *DefaultCTT: 2
                       *DeviceFonts: LIST(30,31,32,33,34,35,36,8,38,39,40,
+                      41,42,43,44,16,46,47,48,49,50,51,52,54,24,55,56,57,58)
                }
                *case: NoFont
                {
                       *DefaultFont: 3
                       *DefaultCTT: 1
                       *DeviceFonts: LIST()
                }
        }
    }
    *case: LANDSCAPE_CC270
    {
        *DefaultFont: 3
        *DefaultCTT: 1
        *DeviceFonts: LIST()
    }
}
*Command: CmdBoldOn { *Cmd : "<1B>E" }
*Command: CmdBoldOff { *Cmd : "<1B>F" }
*Command: CmdItalicOn { *Cmd : "<1B>4" }
*Command: CmdItalicOff { *Cmd : "<1B>5" }
*Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
*Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }