Commit Graph

297 Commits

Author SHA1 Message Date
Alexandre Julliard 9208301d16 Rewrote Escape to avoid calling down to Escape16.
Replaced Escape by ExtEscape in the DC function table.
2001-07-29 20:25:14 +00:00
Alexandre Julliard 99bb9f9775 Added GetDeviceCaps to the DC driver interface. Removed devCaps
pointer in the generic DC structure.
2001-07-28 00:18:02 +00:00
Alexandre Julliard 3dd63eb2ad Build the DC function table by using GetProcAddress on the graphics
driver module. Moved driver support to dlls/gdi.
2001-07-27 19:37:31 +00:00
Ian Pilcher 42e052d405 Rewrite TrueType font metric parsing code. 2001-07-26 21:42:45 +00:00
Alexandre Julliard 5f728cae70 Removed HEAP_strdupA. 2001-07-24 21:45:22 +00:00
Ian Pilcher d8f2c8b67c Make built-in font data read-only. 2001-07-24 21:40:15 +00:00
Ian Pilcher 4bc1ebb5ed Modify init code to handle const data types. 2001-07-24 20:52:19 +00:00
Ian Pilcher d80b7a0776 Use Windows metrics for font scaling. 2001-07-23 23:21:18 +00:00
Ian Pilcher 7dd9ad72be Only index glyph names when necessary. 2001-07-23 17:48:51 +00:00
Alexandre Julliard f899ef07a6 Removed some unnecessary includes. 2001-07-23 00:04:00 +00:00
Ian Pilcher c85b9fddf6 Eliminate UNICODEVECTOR data type. 2001-07-22 23:43:51 +00:00
Alexandre Julliard 0dd55c44a2 Removed some direct accesses to GDI internal pen/brush/font
structures.
2001-07-22 23:34:21 +00:00
Alexandre Julliard 6bbc745dde Moved the 16-bit pointer to the DIB bits out of the driver-specific
structure and into the main bitmap structure. Removed
CreateDIBSection16 from the driver interface.
2001-07-22 23:13:08 +00:00
Ian Pilcher a9eae850d4 Remove redundant data structure from font metrics. 2001-07-22 23:05:51 +00:00
Ian Pilcher 020146619c Read/calculate average character width for all fonts.
Work directly with 16-bit WCHARs; don't convert to CP1252.
2001-07-19 00:30:43 +00:00
Ian Pilcher 4194fe48e3 Make Helvetica Narrow a separate font family. 2001-07-19 00:30:15 +00:00
Patrik Stridvall 044855c6ec Documentation fixes. 2001-07-11 18:56:41 +00:00
Patrik Stridvall 01d5e5b071 Documentation fixes. 2001-07-02 19:59:40 +00:00
Dmitry Timoshkov 7aa8694908 Fix some inter dll dependencies. 2001-07-02 18:02:10 +00:00
Dmitry Timoshkov 043f64021d Replace PROFILE_* functions by Reg*. 2001-07-02 18:00:33 +00:00
Dmitry Timoshkov 36b4e1e2bf Replace some 16-bit calls by their 32-bit equivalents. 2001-06-26 19:34:36 +00:00
Patrik Stridvall 172cd1b967 Fixed some issues found by winapi_check. 2001-06-11 20:16:11 +00:00
Ian Pilcher 40432fef7e Use autoconf checks to check for various FreeType headers. 2001-06-06 21:05:23 +00:00
Ian Pilcher a3b562f74e Updated built-in metrics for core PostScript fonts. 2001-06-06 20:22:05 +00:00
Ian Pilcher fee7fa62cc Removed incorrect string length calculation. 2001-06-06 20:20:37 +00:00
Ian Pilcher afdeba82ae Fixed font metric rounding error. 2001-05-31 21:34:17 +00:00
Ian Pilcher 55d2e575af Build AFM data for core PostScript fonts into WINEPS. 2001-05-29 22:06:10 +00:00
Ian Pilcher 35343626e5 Use macros for FreeType includes. 2001-05-29 20:49:39 +00:00
Ian Pilcher 267d630bd0 Added AvgCharWidth member to font metrics. 2001-05-24 18:39:53 +00:00
Ian Pilcher dd31257537 Updated PostScript glyph name data. 2001-05-24 18:39:31 +00:00
Ian Pilcher 563598d45d Read metrics from TrueType fonts. 2001-05-16 20:56:05 +00:00
Ian Pilcher c6eeda464e Guesstimate Windows font metrics for Type 1 fonts. 2001-05-16 20:05:24 +00:00
Marcus Meissner 3f1ed52d8b Implemented 64bit file size handling.
Removed several unneeded sys/stat.h includes.
2001-05-14 20:09:37 +00:00
Francois Gouget ee285b7ac8 Remove unnecessary single quoting of debugstr_xxx strings. 2001-05-11 20:03:40 +00:00
Ian Pilcher 9c1ac515bf Eliminate __compar_fn_t. 2001-05-11 19:54:24 +00:00
Ian Pilcher 657c4afaec Unicode encodings for PostScript fonts. 2001-05-09 17:11:59 +00:00
Marcus Meissner 0c63012b6d Implemented /etc/printcap based printing support.
Changed 'CUPS:printername' to 'LPR:printername'.
Some fixes in AddPrinterW().
2001-05-09 17:10:41 +00:00
Marcus Meissner f30b035102 PS passthrough was sending 2 bytes too many.
Added GETSETPRINTORIENT stub.
Implemented EPSPRINTING mode changer.
2001-05-08 00:10:52 +00:00
Ian Pilcher 6e73ee029a Make PSDRV_Escape(GETPHYSPAGESIZE) return physical size. 2001-05-07 20:15:40 +00:00
Ian Pilcher 506f790c41 Fixed rounding error in page size calculation. 2001-05-07 20:15:23 +00:00
Marcus Meissner 8367bafb1a Report that we have 2^16 colors, so PowerPoint97 prints colored
slides.
2001-05-07 18:13:42 +00:00
Marcus Meissner 3493de8c64 For underlining and striking out text we need to send a 'newpath' or
have the whole page filled with black.
2001-05-07 18:13:28 +00:00
Marcus Meissner b1118096bb Paper dialog translated to German. 2001-05-07 18:13:13 +00:00
Ian Pilcher 91857a6c1a Misc. error checking in PostScript driver. 2001-05-03 18:34:27 +00:00
Ian Pilcher 2ce7bc84ed Check for errors in PSDRV_Init. 2001-04-30 18:17:13 +00:00
Marcus Meissner ab8b7dba77 Added CUPS printing support. 2001-04-27 18:02:46 +00:00
Ian Pilcher 60268d1da9 Use typecasts to suppress compiler warnings. 2001-04-23 18:12:45 +00:00
Ian Pilcher efb6460e79 Store each glyph name only once in PostScript driver. 2001-04-20 18:30:38 +00:00
Ian Pilcher c9ada023a7 Make paper size and bin type handling more like Windows drivers. 2001-04-16 19:34:21 +00:00
Andreas Mohr f493c52209 Fixed 0 count handling in PSDRV_Text. 2001-04-16 18:55:48 +00:00
Ian Pilcher 744820d014 Various registry-related PostScript driver enhancements. 2001-04-02 19:14:41 +00:00
Ove Kaaven 27398d4966 Implemented Get/SetDeviceGammaRamp. 2001-03-20 01:55:18 +00:00
Huw D M Davies 39f54283fc Moved GetTextMetrics to unicode. 2001-03-16 16:43:14 +00:00
Ian Pilcher 23e207eebd Don't load AFM files from predefined directories; use [afmdirs]
section in Wine config file instead.
2001-03-13 23:30:03 +00:00
Ian Pilcher 1cfdeeecdb Squash another AFM character metrics parsing bug. 2001-03-01 22:10:46 +00:00
Ian Pilcher db490e5e34 Fix bug in AFM character width parsing. 2001-02-28 21:39:14 +00:00
Morten Welinder ae70f5c647 (PSDRV_AFMGetCharMetrics): Use unsigned chars (since isspace is used).
(PSDRV_AFMParse): Don't crash on missing font name.  Use unsigned
chars.  Fix peculiar inconsistent indentation.  Don't leak a FILE.
Catch problematic files with no line feed in them.  Don't mix
characters and integers.  Don't overrun the buffer.
2001-02-15 21:23:50 +00:00
Huw D M Davies 2aa85eed18 Change FONTOBJ to use LOGFONTW rather than LOGFONT16.
Updated parameters of DEVICEFONTENUMPROC.
2001-02-14 22:56:38 +00:00
Peter H. Ganten 988d1c233a - only parse AFM-files, which start with "BeginFontMetrics"
- use fgetc instead of fgets to cope with AFM-Files with
  Macintosh-Style line-breaks ('\r') in the parser.
2001-02-13 20:18:47 +00:00
Francois Gouget b87a83866f Change the callback declarations to a safer format. 2001-02-12 03:51:04 +00:00
Huw D M Davies 804edb1cec Map 'Courier New' to 'Courier'. 2001-02-12 03:37:52 +00:00
Marcus Meissner 33c24891b9 Fixed a NULL ptr problem.
Added loading of .afm files from several common locations
(ghostscript, a2ps, enscript, (teTeX), X11).
2001-02-12 01:25:46 +00:00
Huw D M Davies 8d50352b66 Spaces do not have to come after the ':' that ends a keyword.
Map bin name ManualEnv to DMBIN_ENVMANUAL.
2001-02-12 01:23:26 +00:00
Huw D M Davies a83c7c5320 Fix for rotated text when lpDx is specified.
Better handling of cumulative rounding errors.
2001-02-12 01:21:34 +00:00
Huw D M Davies d4b933e7d2 Take into account unprintable margins in psdrv. 2001-01-28 23:13:45 +00:00
Alexandre Julliard 71891e1fd6 Authors: Huw D M Davies <hdavies@codeweavers.com>, Dmitry Timoshkov <dmitry@codeweavers.com>
psdrv's DeviceCapabilities should list DMBIN_AUTO as an available
bin.
2001-01-28 23:13:25 +00:00
Dmitry Timoshkov e1f6dc0dbd Add "OnlyOne" paper source, used by the Acrobat Distiller PPD. 2001-01-28 23:12:52 +00:00
Huw D M Davies 8a65170c37 Handle the lpDx array properly. 2001-01-26 20:38:11 +00:00
Eric Kohl 08936ff97a Partial implementation of world transform support. 2001-01-24 19:38:11 +00:00
Alexandre Julliard 0618746265 Cleaned up dll startup routines now that we have separate address
spaces.
2001-01-17 22:03:18 +00:00
Marcus Meissner a983a719ec Added one safety check to AFM parsing. 2001-01-02 20:30:16 +00:00
Ian Pilcher 8ed43e6b47 Use a case-insensitive comparison to match PostScript font names. 2000-12-29 05:27:24 +00:00
Alexandre Julliard 982a223f36 Replaced PTR_SEG_TO_LIN macro by exported MapSL function.
Fixed a few ptr/segptr mismatches.
Moved CONV_RECT/POINT macros to wingdi16.h.
2000-12-13 20:20:09 +00:00
David Elliott ea186796eb Remove libXXXX.so.1.0 lines from .cvsignore files. 2000-11-30 19:57:34 +00:00
Dimitrie O. Paun 529da54394 Require {DECLARE,DEFAULT}_DEBUG_CHANNEL statements to end in a ; 2000-11-27 23:54:25 +00:00
Dmitry Timoshkov d9d8ab0be2 Added Russian resources to the Postscript driver. 2000-11-09 20:26:11 +00:00
Dmitry Timoshkov dcd09986c3 New path for AFM documentation on the net. 2000-11-07 20:27:40 +00:00
Alexandre Julliard eb58e1d597 Declare debug channels in all dlls that need them; added imports of
ntdll where necessary.
2000-11-05 04:53:07 +00:00
Patrik Stridvall d3534c3957 Optimized {,p}MoveTo{,Ex}{,16}. 2000-11-05 03:28:18 +00:00
Alexandre Julliard 2239abb9f9 Allocate DC objects on the process heap, and removed WIN_DC_INFO
structure (based on a patch by Ken Coleman).
2000-11-05 02:05:07 +00:00
Peter Ivanyi 1da3befe54 Added/upgraded Slovak messages, and Slovak and Czech keyboard layout. 2000-10-31 01:19:11 +00:00
Patrik Stridvall a9f6a9daec Explicitly initialize structures. 2000-10-24 02:22:16 +00:00
Alexandre Julliard 21ec006fc1 Build Win32 resources as .res files and dump them into the .spec.c file. 2000-10-23 21:39:39 +00:00
Alexandre Julliard 044f028f0e Brian Pirie
Added support for PASSTHROUGH and POSTSCRIPT_PASSTHROUGH escapes.
2000-10-19 20:33:02 +00:00
Huw D M Davies e8aa1b98a0 Paper size and orientation prop sheet for wineps. 2000-09-22 22:16:31 +00:00
Andreas Mohr 007fb24088 Added support for non-deletable system brushes and pens created by
USER.
2000-09-16 20:53:51 +00:00
Dmitry Timoshkov ad9700582b Register Wine Postscript Driver as "WINEPS", "WINEPS.DLL" and
"WINEPS.DRV" to allow an easy configuring for users.
2000-08-26 20:27:28 +00:00
Alexandre Julliard 2a2321bbca Authors: Alexandre Julliard <julliard@codeweavers.com> (for Corel), Albert den Haan <albertd@corel.com>
Added syslevel locking for GDI operations.
Propagate the changes through the graphics code.
2000-08-19 21:38:55 +00:00
Alexandre Julliard e514103971 Added imports of kernel32.dll where necessary. 2000-08-06 03:47:29 +00:00
Alexandre Julliard b0efe28f6c Removed a few dependencies on GDI internals from USER dll. 2000-08-04 04:18:04 +00:00
Alexandre Julliard 87194855a1 Changed the AFM metrics structure to use an array instead of a linked
list. This avoids doing two heap allocations for every character, and
reduces the metrics parsing time by approx 25%.
2000-08-03 22:17:45 +00:00
Alexandre Julliard 6c9d83aa4c Added imports of user32/gdi32/kernel32 wherever necessary. 2000-08-03 00:04:24 +00:00
Alexandre Julliard 76d3671bee Added 'owner' field to 16-bit spec files to specify the name of the
32-bit dll that contains it.
2000-07-28 00:07:18 +00:00
Alexandre Julliard 6953d6756c For dlls, derive SPEC_SRCS from MODULE and ALTNAMES. 2000-06-20 20:24:14 +00:00
Huw D M Davies ec0ceeffc5 If printer only supports level 1 PostScript then complain rather than
trying to use a pattern color space.  Thanks to David Goodenough.
2000-06-12 21:54:52 +00:00
Huw D M Davies d323f4308d Terminate image data with a '>' [The PSLRM is rather vague about this].
Thanks to Bernd Herd.
2000-06-11 20:00:05 +00:00
Dimitrie O. Paun 84bde6a4a4 Separate wineps out of Wine's core. 2000-05-30 20:27:23 +00:00