Commit Graph

269 Commits

Author SHA1 Message Date
Dan Kegel 0fd521fee3 Change RECT to use LONG to match win32 standard headers and fix format
strings to use %ld for RECT elements.
2003-01-08 21:09:25 +00:00
Francois Gouget 3efacb0acf Remove extra #include directives from winspool.h. 2003-01-07 23:09:22 +00:00
Dimitrie O. Paun 297f3d898d Define NONAMELESS{STRUCT,UNION} explicitly in the files that need them. 2003-01-07 20:36:20 +00:00
Alexandre Julliard 69e711ef01 wineps16.dll should be named .drv. 2002-12-23 02:07:20 +00:00
Alexandre Julliard dbf8b78acd Added .spec.def files. 2002-12-12 22:04:04 +00:00
Alexandre Julliard ada5e6521b Implemented import libraries; on Unix we import the .def file
directly, on Mingw we use it to build the .a library.
2002-12-12 22:03:14 +00:00
Alexandre Julliard 435e2e63f4 winnt.h should not be self-contained, it must depend on windef.h so
that STRICT works correctly; moved some definitions back to windef.h
where they belong, and removed a couple of definitions that don't
exist on Windows.
2002-12-10 22:56:43 +00:00
Huw Davies bc71031240 Proper handling of SetTextCharacterExtra. 2002-11-15 01:02:16 +00:00
Huw Davies a4c3ed02ee Implemented Escapes *_PATH and POSTSCRIPT_IGNORE. 2002-11-15 00:02:13 +00:00
Huw Davies 97aed7a5dd Fix PSDRV_DrawArc to work properly with logical coords. 2002-11-13 23:52:29 +00:00
Huw Davies 5d275962eb Instead of trying to download the Type 42 glpyh metrics incrementally
(which most printers don't seem to understand), we'll download the
whole hmtx table in one go (sigh) unless it's larger than 64K in which
case we'll go back to using a Type 1 font.
2002-11-13 23:51:44 +00:00
Huw Davies e24ed54029 We can't cache the unscaled font's hfont, since the mapping mode may
change.  This resulted in some glyphs being downloaded at the wrong
size.
2002-11-13 23:50:44 +00:00
Marcus Meissner f061f76704 Do not link against -lcups directly, but dynamically load it if
present (just like freetype etc.)
2002-11-12 02:22:24 +00:00
Alexandre Julliard 1e1313d54c Made the dll entry point default to DllMain and removed most of the
'init' spec file declarations.
2002-11-04 23:53:41 +00:00
Marcus Meissner 0f53dbf32b Specify existing extra size of WINEPS Devmode structure.
Make ExtDeviceMode16 in WINEPS return the correct size.
2002-11-04 22:37:57 +00:00
Dmitry Timoshkov 601a3abec1 Fix some types and function prototypes according to Platform SDK
definitions.
2002-10-31 01:04:39 +00:00
Vincent Béron d1d586e2a9 Bring some French resources in sync with English ones. 2002-10-23 23:34:32 +00:00
Alexandre Julliard b34fb35b31 Fixed warnings caused by conversion to -DSTRICT. 2002-10-18 23:48:57 +00:00
Alexandre Julliard 0ca051e555 Fixed wownt32.h to make it usable from inside Wine, and use it to
avoid some duplication of the handle conversion macros.
2002-10-17 16:43:42 +00:00
Michael Stefaniuc e149b37f3a Finish the conversion of HWND to a void*. 2002-09-06 20:40:42 +00:00
Patrik Stridvall 1ee88a2bfb Removed trailing white space. 2002-08-28 23:43:43 +00:00
Patrik Stridvall d016f819f1 Added include protection for unistd.h and sys/time.h. 2002-08-17 00:43:16 +00:00
Huw D M Davies 933733ce5b Get the initial paper size from the locale info. 2002-08-15 23:20:19 +00:00
Huw D M Davies 238b4da314 Correct font size for non MM_TEXT modes. 2002-08-14 21:06:26 +00:00
Rafael Kitover ac81d02a58 Portability fixes for Cygwin. 2002-07-31 20:04:20 +00:00
Carl Sopchak 0e8da89122 Pass "Manual Feed" as short input slot name. 2002-07-10 20:33:24 +00:00
Alexandre Julliard 5ee1599d59 Replaced LPTODP/DPTOLP macros by calls to LPtoDP/DPtoLP (with the help
of Huw Davies).
2002-06-25 23:29:51 +00:00
Huw D M Davies ae4278ee59 Added Type 1 and Type 42 font downloading.
Misc bug fixes.
2002-06-24 23:44:18 +00:00
Huw D M Davies 7a6ea91913 Handle dmScale. 2002-06-24 23:41:55 +00:00
Huw D M Davies 22ae3bd167 psdrv doesn't care about hGCClipRgn, just use GetClipRgn instead. 2002-06-24 23:40:54 +00:00
Huw D M Davies 4aa2c81db2 Get rid of a few thousand useless TRACE lines. 2002-06-24 23:40:01 +00:00
Huw D M Davies eee03b0ea5 Added afm weight "NORMAL". 2002-06-24 23:38:51 +00:00
Alexandre Julliard 77afd6c47e Made some more spec file entries optional or unnecessary.
Fixed a few DLLName/DLLFileName mismatches.
2002-06-21 19:15:45 +00:00
Alexandre Julliard d3cab1857a Moved DC origin into device-specific structure.
Fixed handling of DC origin in X11 driver.
2002-06-10 22:52:47 +00:00
Won-kyu Park ff4f41d81e Added Korean resources. 2002-06-10 02:32:31 +00:00
Alexandre Julliard 7cae558bdc Removed some more trailing whitespace. 2002-06-01 02:55:48 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard 7fbd74ea55 Replaced the GET/PUT_UA macros by memcpy. Fixed a few big-endian
issues.
2002-05-23 02:53:10 +00:00
Alexandre Julliard 67e8dc6861 Added configure check for the soname of libraries that we load
dynamically.  Added a few other configure macros, and moved all macros
into aclocal.m4.
2002-05-20 18:29:58 +00:00
Andreas Mohr 012478c9d3 Spelling stuff. 2002-05-20 18:01:44 +00:00
Alexandre Julliard 2ab7625934 Removed most imports of ntdll since we no longer import Wine internal
functions from there.
2002-05-17 03:37:12 +00:00
Alexandre Julliard ad53383f9b Added winebuild support for generating a .dbg.c file containing the
debug channels definitions.
Made win32 the default type for spec files.
Ignore C compiler in winebuild so we can simply pass it $(DEFS).
Removed type win32 and debug_channels from spec files.
Fixed winebuild to always generate correct C identifiers (reported by
Vincent Béron).
2002-05-14 20:54:58 +00:00
Alexandre Julliard 67371bcc8d Added -res option to specify resources on winebuild command-line.
Added -exe mode to generate a .spec.c for an exe without having to
provide a .spec.
Removed some no longer needed spec files.
Removed .dll extension in makefiles import specifications.
2002-05-11 23:06:32 +00:00
Alexandre Julliard 32459912dc Moved imports specification from the .spec into the Makefile so that
it can be used on platforms that don't build a .spec.c file.
2002-05-09 00:05:48 +00:00
Alexandre Julliard 92b376d61d Moved parts of the DC initialisation and bitmap selection out of the
drivers into the common code.
2002-05-07 02:08:46 +00:00
Alexandre Julliard dec2cee2fb Removed some direct accesses to the DC structure. 2002-05-02 01:39:48 +00:00
Alexandre Julliard 7418d39f5a Export a few more 16-bit GDI functions. Finished wineps separation. 2002-04-17 16:51:47 +00:00
Alexandre Julliard ab246a679b Pass a PHYSDEV to EnumDeviceFont and release the GDI lock in
FONT_EnumInstance instead.
2002-04-14 19:42:43 +00:00
Huw D M Davies b88f72465a Implement ResetDC and PHYSICALOFFSET[X|Y] devcaps.
Fixes to MergeDevmodes.
2002-04-06 00:12:42 +00:00
Huw D M Davies 7526fc5f92 Changed default paper size to letter. 2002-04-06 00:04:31 +00:00
Huw D M Davies 18036cb5a1 Make ExtDeviceMode dialog use unicode property sheet functions. 2002-04-05 23:59:43 +00:00
Huw D M Davies d14b2f0f0b Load libfreetype.so on the fly with dlopen and friends. 2002-04-03 20:02:39 +00:00
Patrik Stridvall 14c96c1017 Fixed some issues found by winapi_check. 2002-04-03 02:37:09 +00:00
Alexandre Julliard e21c15e39d Changed the GDI driver interface to pass an opaque PHYSDEV pointer
instead of a DC structure.
Removed some direct accesses to the DC structure from the drivers.
Got rid the bitmap driver.
2002-03-28 22:22:05 +00:00
Alexandre Julliard c1bfca04e1 Changed builtin dlls file names to make it clear they are not normal
Unix libraries, and install them in $libdir/wine instead of $libdir to
avoid name conflicts in /usr/lib.
2002-03-20 22:19:06 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Patrik Stridvall 57e5784c21 Move __stdcall/__cdecl to the right place. 2002-02-02 18:42:11 +00:00
Francois Gouget 62f083ce48 malloc.h is obsolete and stdlib.h should be used instead. 2002-02-02 18:16:25 +00:00
Francois Gouget 809c45fc50 Include ftsnames.h or ftnames.h, not both. 2001-12-24 21:10:31 +00:00
Andreas Mohr 9cef2d0b1d - fix wrong hexadecimal GetLastError() output
- misc fixes
- changed my email address
2001-11-19 02:30:01 +00:00
Francois Gouget f101e2760b Add support for environment variables in the printer settings.
Remove the fixed-size buffers.
2001-10-22 19:00:08 +00:00
Francois Gouget e5ddd26dd7 When including config.h, include it first. 2001-10-14 16:18:52 +00:00
Huw D M Davies 814654ef9f Lay down the infrastructure for gdi font rendering.
Partial implementation of GetGylphOutline and GetOutlineTextMetrics
for gdi fonts.
2001-09-12 20:21:06 +00:00
Alexandre Julliard 78f9fae706 Create GDI stock objects as normal objects instead of using magic
handle values.
2001-08-17 00:07:13 +00:00
Alexandre Julliard e811f9c353 Specify sizes for stock fonts again; removed the FixStockFontSize
hack. Ignore mapping modes when selecting stock fonts into a DC.
Removed a few direct accesses to GDI structures from x11drv.
2001-08-16 19:13:52 +00:00
Ian Pilcher 2576513014 Eliminate glyph bounding boxes & other unused font metrics. 2001-08-15 17:41:37 +00:00
Ian Pilcher 1ea54c608e Remove unused character width array. 2001-08-11 18:23:17 +00:00
Ian Pilcher ec74ea3e98 Make EnumFonts and SelectObject use common font scaling. 2001-08-11 18:22:29 +00:00
Ian Pilcher 061cfa80a7 Removed ANSI encoding stuff. 2001-08-10 22:30:16 +00:00
Ian Pilcher c4e40d8f9e Remove previously disabled code. 2001-08-09 21:36:56 +00:00
Patrik Stridvall a2afd5b8ad Documentation fixes. 2001-08-09 21:36:39 +00:00
Ian Pilcher 625bef463f Rewrite and separate AFM parsing code (no more [afmfiles]). 2001-08-08 23:22:06 +00:00
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