Dmitry Timoshkov
691be74f17
gdiplus: Take into account font substitution in GdipCreateFontFromLogfont.
2012-09-27 20:49:37 +02:00
Dmitry Timoshkov
65a966de76
gdiplus: Take into account font substitution in GdipCreateFontFamilyFromName.
2012-09-27 20:49:29 +02:00
Dmitry Timoshkov
f8b1154226
gdiplus: GdipGetLogFontW should transform returned font height using font and device unit/resolution/scale.
2012-08-14 16:41:55 +02:00
Dmitry Timoshkov
9288acda1d
gdiplus: GdipGetFontHeight should convert height from font to device units.
2012-07-18 17:17:38 +02:00
Dmitry Timoshkov
ed8a3304c4
gdiplus: Factor out units_to_pixels() helper.
2012-07-18 17:17:31 +02:00
Dmitry Timoshkov
ac38e69a92
gdiplus: Accept wider range of fonts.
2012-06-14 19:16:00 +02:00
Dmitry Timoshkov
a4f79c347e
gdiplus: Use font emSize to map to pixel size instead of using gdi32 font metrics.
2012-05-21 11:34:37 +02:00
Dmitry Timoshkov
5e4d64d18e
gdiplus: Create 'const' friendly internal entries for font APIs.
2012-05-14 17:49:02 +02:00
Dmitry Timoshkov
83e88af325
gdiplus: Fetch font family metrics from truetype font data.
2012-05-11 15:43:42 +02:00
Dmitry Timoshkov
c626528a91
gdiplus: Use OUTLINETEXTMETRIC instead of LOGFONT to store GpFont metrics.
2012-05-11 15:42:09 +02:00
Dmitry Timoshkov
915cd7b5b2
gdiplus: Use appropriate accessors to calculate font height instead of accessing GpFont internals directly.
2012-05-11 15:40:41 +02:00
Dmitry Timoshkov
54b69043eb
gdiplus: Derive GpFont from GpFontFamily.
2012-05-09 12:03:33 +02:00
Dmitry Timoshkov
542e30b531
gdiplus: Add more traces to font APIs.
2012-05-01 14:45:38 +02:00
Dmitry Timoshkov
1e12570d72
gdiplus: Use symbolic name of the font style.
2012-04-24 19:10:42 +02:00
Dmitry Timoshkov
e43fce0da9
gdiplus: Do not rely on an enumerated font size being equal to otmEMSquare.
2012-04-24 18:42:17 +02:00
Dmitry Timoshkov
44ec1a2e52
gdiplus: Use symbolic names of font styles.
2012-04-23 11:40:52 +02:00
Dmitry Timoshkov
9b5b04c1c1
gdiplus: Avoid saving negative values in pixel_size and emSize.
2012-04-23 11:40:37 +02:00
Francois Gouget
4c13e84a7c
gdiplus: Use Liberation Mono as a fallback for Courier New for the monospace family.
2011-09-13 11:27:42 +02:00
Vincent Povirk
11f0662c60
gdiplus: Don't settle on a font size until absolutely necessary.
...
When we create a new font, we should store its height in a REAL field so
we don't have to round it. Further, when we calculate the width, we should
base the calculation on the metrics of a font at the height we will use, to
prevent rounding errors when the graphics transform will enlarge the font.
2011-04-05 13:36:56 +02:00
Vincent Povirk
ca5b5d2a05
gdiplus: Fall back to Liberation Serif if Times New Roman is missing.
2011-03-30 13:28:04 +02:00
Francois Gouget
769dcd8447
gdiplus: Make load_ttf_name_id() static.
2011-03-16 14:14:23 +01:00
Maarten Lankhorst
8794f8f708
gdiplus: Implement in-memory font storage.
2011-02-22 12:27:59 +01:00
Vincent Povirk
cb21d1caf4
gdiplus: Don't rely on an HDC in GdipGetFontHeight.
2010-11-01 11:33:31 +01:00
Vincent Povirk
5694825ae3
gdiplus: Return copies of fonts from GdipGetFontCollectionFamilyList.
2010-07-19 14:49:07 +02:00
Vincent Povirk
b7c9adcd06
gdiplus: Implement GdipIsStyleAvailable.
2010-05-10 10:02:24 +02:00
Vincent Povirk
531219f84d
gdiplus: Do not create FontFamilies for bitmap fonts.
2010-04-16 12:01:42 +02:00
Vincent Povirk
049aa8dacd
gdiplus: Ensure GdipGetGenericFontFamilySansSerif returns a truetype font.
2010-04-16 12:01:39 +02:00
Vincent Povirk
541d7a5ab2
gdiplus: Print the GdipGetFamilyName FIXME only once.
2010-04-09 18:35:00 +02:00
Justin Chevrier
b7679da9a7
gdiplus: Handle UnitWorld in GdipGetFontHeightGivenDPI.
2010-03-26 10:31:25 +01:00
Vincent Povirk
2d8fb9ade3
gdiplus: Add traces for values of newly-created font objects.
2009-12-21 15:01:23 +01:00
Vincent Povirk
ef4d0d970d
gdiplus: Populate the installed font collection.
2009-05-14 17:23:03 +02:00
Vincent Povirk
47e70af50b
gdiplus: Correct the lfHeight calculation in GdipCreateFontFromLogfontW.
...
Negative lfHeight values do not include internal leading. This was
making fonts created from LOGFONT structures larger than they should be.
2009-05-04 12:50:05 +02:00
Vincent Povirk
73eea0d05f
gdiplus: Create a static InstalledFontCollection object, currently empty.
2009-04-28 13:10:02 +02:00
Paul Vriens
40f812c110
gdiplus: Convert lfFaceName from W to A, not the other way around.
2009-04-24 11:56:52 +02:00
Paul Vriens
7bf6a3030b
gdiplus: Return the correct result in GdipCreateFontFromLogfontA.
2009-04-24 11:56:38 +02:00
Francois Gouget
5ef481922f
Assorted spelling fixes.
2009-04-20 15:25:26 +02:00
Nikolay Sivov
c17266de9e
gdiplus: Implemented GdipGetLogFontA.
2009-02-04 15:41:09 +01:00
Nikolay Sivov
e2615cc059
gdiplus: Fix Font test failure on charset mismatch.
2008-12-16 12:52:38 +01:00
Michael Stefaniuc
50ff549420
gdiplus: Remove some superfluous casts.
2008-12-05 12:36:41 +01:00
Hans Leidekker
8656f6db50
gdiplus: Better implementation of GdipGetFontHeightGivenDPI.
2008-12-01 14:01:14 +01:00
Hans Leidekker
80a54ca53f
gdiplus: Implement GdipGetFontCollectionFamilyCount and GdipGetFontCollectionFamilyList.
2008-11-24 14:25:10 +01:00
Hans Leidekker
2b8c6fe4db
gdiplus: Add a stub implementation of GdipPrivateAddMemoryFont.
2008-11-24 14:25:10 +01:00
Hans Leidekker
ea323d1349
gdiplus: Implement GdipNewPrivateFontCollection and GdipDeletePrivateFontCollection.
2008-11-24 14:25:10 +01:00
Hans Leidekker
c04b7c5b0f
gdiplus: Implement GdipGetLineSpacing.
2008-11-24 14:25:10 +01:00
Aric Stewart
799a76e8c9
gdiplus: Stub implementation of GdipNewInstalledFontCollection.
2008-11-04 11:18:38 +01:00
Nikolay Sivov
c9d4046bcf
gdiplus: Add TRACE(..) for font calls.
2008-09-03 14:21:41 +02:00
Adam Petaccia
f5e9a01cce
gdiplus: GdipGetFontHeightGivenDPI: Return a valid value for UnitPixel.
2008-08-28 11:52:37 +02:00
Adam Petaccia
74c8117a4b
gdiplus: Don't create a font if there is no facename.
2008-08-28 11:51:16 +02:00
Adam Petaccia
5361f074a3
gdiplus: Implement GdipGetFontHeight.
2008-08-28 11:51:09 +02:00
Adam Petaccia
ce40fde689
gdiplus: Implement GdipGetFontStyle.
2008-08-28 11:50:32 +02:00