Re: Add VRGB/VBGR render modes for subpixel aliasing as new FontOrientation to enable capabilities that are already in xrender.c:UploadGlyph and subsequently freetype.c:WineEngGetGlyphOutline

2010-03-17 Thread Clemens Fruhwirth
On Wed, Mar 17, 2010 at 3:17 PM, Alexandre Julliard  wrote:
> Clemens Fruhwirth  writes:
>
>> Would it be ok to add some override to Software\\Wine\\Fonts*? I'm
>> using a rotated monitor and at least in Wine I would like to have
>> properly rendered fonts.
>
> The first step would be to investigate how Windows handles that case.

There are no vertical rendering modes for ClearType under Windows (7).
There are some interfaces to do vertical rendering with DirectWrite,
but there are no ways to enable it generally for the "whole"
interface. I googled that some time ago and all resources come to the
same conclusion, ClearType=disabled for rotated monitors.
http://typophile.com/node/35168

My proposal would extend Wine beyond the capabilities of Windows. I
assumed that with Windows 7 they'd fix this long outstanding missing
feature, but I was wrong obviously.
-- 
Fruhwirth Clemens http://clemens.endorphin.org




Re: Add VRGB/VBGR render modes for subpixel aliasing as new FontOrientation to enable capabilities that are already in xrender.c:UploadGlyph and subsequently freetype.c:WineEngGetGlyphOutline

2010-03-17 Thread Clemens Fruhwirth
On Wed, Mar 17, 2010 at 11:03 AM, Alexandre Julliard
 wrote:
> Clemens Fruhwirth  writes:
>
>> @@ -3090,8 +3090,10 @@ typedef struct tagCBTACTIVATESTRUCT
>>  #define FE_FONTSMOOTHINGCLEARTYPE      0x0002
>>  #define FE_FONTSMOOTHINGDOCKING        0x8000
>>
>> -#define FE_FONTSMOOTHINGORIENTATIONBGR 0x
>> -#define FE_FONTSMOOTHINGORIENTATIONRGB 0x0001
>> +#define FE_FONTSMOOTHINGORIENTATIONBGR  0x
>> +#define FE_FONTSMOOTHINGORIENTATIONRGB  0x0001
>> +#define FE_FONTSMOOTHINGORIENTATIONVBGR 0x0002
>> +#define FE_FONTSMOOTHINGORIENTATIONVRGB 0x0003
>
> These don't seem to exist in the PSDK. Where do they come from?

I doubled check my assumption that those are wine-specific #defines.
This is obviously false (I should have guessed that from the .h
file-name). Assuming this would be wine specific, I invented the two
additional defines. Sorry, discard the patch.

Would it be ok to add some override to Software\\Wine\\Fonts*? I'm
using a rotated monitor and at least in Wine I would like to have
properly rendered fonts.
-- 
Fruhwirth Clemens http://clemens.endorphin.org




Re: Add VRGB/VBGR render modes for subpixel aliasing as new FontOrientation to enable capabilities that are already in xrender.c:UploadGlyph and subsequently freetype.c:WineEngGetGlyphOutline

2010-03-17 Thread Alexandre Julliard
Clemens Fruhwirth  writes:

> Would it be ok to add some override to Software\\Wine\\Fonts*? I'm
> using a rotated monitor and at least in Wine I would like to have
> properly rendered fonts.

The first step would be to investigate how Windows handles that case.

-- 
Alexandre Julliard
julli...@winehq.org




Re: Add VRGB/VBGR render modes for subpixel aliasing as new FontOrientation to enable capabilities that are already in xrender.c:UploadGlyph and subsequently freetype.c:WineEngGetGlyphOutline

2010-03-17 Thread Alexandre Julliard
Clemens Fruhwirth  writes:

> @@ -3090,8 +3090,10 @@ typedef struct tagCBTACTIVATESTRUCT
>  #define FE_FONTSMOOTHINGCLEARTYPE  0x0002
>  #define FE_FONTSMOOTHINGDOCKING0x8000
>
> -#define FE_FONTSMOOTHINGORIENTATIONBGR 0x
> -#define FE_FONTSMOOTHINGORIENTATIONRGB 0x0001
> +#define FE_FONTSMOOTHINGORIENTATIONBGR  0x
> +#define FE_FONTSMOOTHINGORIENTATIONRGB  0x0001
> +#define FE_FONTSMOOTHINGORIENTATIONVBGR 0x0002
> +#define FE_FONTSMOOTHINGORIENTATIONVRGB 0x0003

These don't seem to exist in the PSDK. Where do they come from?

-- 
Alexandre Julliard
julli...@winehq.org