Commit Graph

107 Commits

Author SHA1 Message Date
Rein Klazes c7e860d48a Make WineEngGetFontData always return the used byte count. 2005-12-01 11:10:59 +01:00
Huw Davies 8f0c45b5c8 Only select a bitmap font as a last resort if we can't find a font
with the correct facename.
2005-10-31 21:03:28 +00:00
Huw Davies 90020c953a Add a Wine specific flag to GetRasterizeCaps that reports whether
freetype's patented hinter is enabled.  This will be used by winex11
to check whether it should honour the gasp table settings.
2005-10-06 12:28:11 +00:00
Huw Davies 4fb2f50d5f Order the bitmap font list by the ansi codepage bit position.
Fix a few comments.
2005-09-16 18:46:54 +00:00
Huw Davies d64172dc5e Remember to remove a child font from the child font list. 2005-09-15 09:29:37 +00:00
Huw Davies 63308e5af4 Only add Tahoma to the System font's link list if we can actually find
it.
2005-09-14 19:17:00 +00:00
Dmitry Timoshkov fe1021a629 Perform automatic bitmap font configuration based on the current
locale.
2005-09-14 15:39:29 +00:00
Huw Davies 14d5e68f19 Cope with OpenFontFile failing. 2005-09-14 11:15:05 +00:00
Marcus Meissner bd7ec9aca5 The last argument to MultiByteToWideChar is wide character count and
not the buffer size in bytes. Fixed all places where it was wrong.
2005-09-12 22:07:53 +00:00
Huw Davies 2014da26fc Have ExtTextOut call into the font linking mechanism.
GetCharWidth, GetCharABCWidths and GetTextExtentPoint should return
the widths of a linked font's glyphs.
2005-09-08 12:40:20 +00:00
Huw Davies 90b897f00e Implement FontIsLinked. 2005-09-07 13:26:49 +00:00
Huw Davies 182e028956 get_glyph_index should return the nonexistent glyph for bitmap fonts
when a unicode character cannot be represented as a single byte in the
font's codepage.
2005-09-07 11:27:05 +00:00
Huw Davies 3915b16762 Add infrastructure for font linking. WineEngGetLinkedHFont will be
used by ExtTextOut to provide an HFONT that will contain a valid
glyph.
2005-09-07 09:21:50 +00:00
Huw Davies e415baadfc Store the selected ppem in the GdiFont. 2005-09-06 14:04:01 +00:00
Huw Davies c682fcc3f4 Build a list of font links read in from the registry. 2005-09-06 09:24:07 +00:00
Huw Davies a03adc7411 Cope better with mixed charset fonts. 2005-08-19 09:58:32 +00:00
Huw Davies 399e6911b3 A previous signed-ness fix broke display of non-ansi chars, fix this. 2005-08-15 14:50:36 +00:00
Mike McCormack 98beaff2c5 Warning fixes for gcc 4.0. 2005-08-08 15:03:42 +00:00
Mike McCormack 89424ce848 -Wpointer-sign fixes for gcc 4.0. 2005-07-05 11:02:37 +00:00
Alexandre Julliard dd919162e3 Fixed HKLM/HKCU mixup for the external fonts key. 2005-06-28 19:15:17 +00:00
Alexandre Julliard 9ad3a97acb Moved all font config parameters to HKCU\Software\Wine\Fonts.
Replaced the FontDirs key enumeration by a simple Path value.
2005-06-14 12:33:19 +00:00
Alexandre Julliard 2e4bca9db5 Added magic comments to all Wine-specific registry accesses to make
them easier to grep.
2005-06-13 18:56:00 +00:00
Francois Gouget 821d4c4645 Fix nativeapi.pm so it knows about AC_HEADER_STAT().
Make the error message about unexpected '#ifdef HAVE_XXX' clearer.
Protect sys/stat.h #includes with the corresponding '#ifdef HAVE_XXX'
check.
2005-05-06 16:22:54 +00:00
Peter Berg Larsen 6e3bcb5a54 Replace strncpy with memcpy or lstrcpyn. 2005-04-18 10:30:55 +00:00
Vincent Béron 67da678ca6 Make static some functions used only in a single file. 2005-04-11 13:00:28 +00:00
TANABE Hiroshi d4114e4c7e Remove (buf && !buflen) checking.
Fixed outline rendering with GGO_GRAY?_BITMAP option.
Improved fixed-pitch fonts detection.
2005-02-25 13:59:22 +00:00
Troy Rollo f679490990 Don't refuse to process VDMX ratio entries with bCharSet == 0. These
entries are at least as useful as those with bCharSet == 1. Add
comment containing URL of documentation for VDMX records.
2005-01-24 19:00:10 +00:00
Vitaly Lipatov 5e4ac6bc1b Spelling fixes. 2005-01-05 17:12:07 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Dmitry Timoshkov 2b98f3255f Fully initialize NEWTEXTMETRICEXW structure for bitmap fonts. 2004-12-21 14:45:38 +00:00
Huw Davies dc27c04ebf Fix always false test. Spotted by Eric Pouech. 2004-12-13 13:14:36 +00:00
Rein Klazes 96d6966baa Test whether the ft_encoding's are defined, not the FT_ENCODING's. 2004-10-18 19:38:30 +00:00
Vincent Béron 63cf3e2c4e Use the preferred FT_ENCODING values rather than ft_encoding. 2004-09-15 18:03:32 +00:00
Hans Leidekker fe442b21f7 Fix signed/unsigned comparison warnings. 2004-09-08 01:23:57 +00:00
Huw Davies 329025915c FreeType doesn't supply a charmap for bitmap fonts, so we must do our
own mapping.  Thanks to Dmitry for testing.
2004-08-26 18:24:03 +00:00
Huw Davies d24592e598 Convert installed font list to list.h. 2004-08-17 22:08:31 +00:00
Huw Davies dbf5b2a320 Don't try to rotate bitmap fonts. 2004-08-11 19:34:20 +00:00
Huw Davies 0e58986d4f Don't ever return a bitmap font if the driver can't use it. 2004-08-11 18:49:34 +00:00
Huw Davies c8c4bf30fb We don't currently support horizontal stretching of bitmap fonts, so
we should ignore lfWidth.
2004-08-10 23:42:18 +00:00
Huw Davies 945d98ba26 GetCharABCWidths should fail for non-scalable fonts. 2004-08-09 23:38:10 +00:00
Huw Davies 86c9f378a4 Try harder to match to a font if the family name is matches, but the
style is doesn't.
2004-08-09 22:54:33 +00:00
Huw Davies 544c85ee01 Break and default char are both relative to first char in the winfnt
header.
2004-08-09 18:52:51 +00:00
Huw Davies 2c527f96eb Maintain a cache (currently of up to 10) of unused fonts. This speeds
up apps that repeatedly recreate the same font.
2004-08-06 17:31:39 +00:00
Huw Davies 2b804c56da Convert gdi font list to use list.h. 2004-08-04 18:16:13 +00:00
Huw Davies 60b22a4add Make tmUnderlined and tmStruckOut reflect the values used to create
the font.
2004-07-22 19:42:31 +00:00
Huw Davies 03fa4c6f57 Fix font replacements to work with bitmap fonts.
Enumerate System, Terminal, FixedSys in that order.
2004-07-14 21:42:35 +00:00
Huw Davies c22171836b Add support for bitmap fonts. 2004-06-16 20:06:26 +00:00
Francois Gouget 52c0832161 Make Unicode strings static const. 2004-04-20 01:12:17 +00:00
Francois Gouget 6a6c85c6d8 Make Unicode const strings static so they are not copied to the stack
each time we enter the function.
2004-04-19 20:12:14 +00:00
Alexandre Julliard 1cb0cf4ced Moved wine_get_unix_file_name implementation to ntdll, and changed it
to return an allocated buffer instead of a fixed size one.
2004-04-14 19:40:53 +00:00