1

Topic: ClearType and knockout

... - Looks as . Whether It is possible to make with it something? Was specific, the scenario such: the dark blue translucent panel (opacity - 80 %, that is, almost opaque), atop - the white text Tahomoj, 14px. When this panel is deduced over a white background, it looks . Round letters there are any black divorces.


Why I think, what business in ClearType? Because, at first, if it to disconnect, all is enough , but this vile effect disappears. Secondly, in Inkscape any smoothing is used (it does not depend on daw CT), similar on , and in it all the same looks quite to itself of anything.


Perhaps I CT incorrectly prepare? More precisely, not I, and  which I use. I adjusted-adjusted CT, but the text as  is dreadful, and looks. Win8, if that.

2

Re: ClearType and knockout

Hello, the Anonymous author, you wrote:

...  looks as . Whether It is possible to make with it something? Was specific, the scenario such: the dark blue translucent panel (opacity  80 %, that is, almost opaque), atop  the white text Tahomoj, 14px. When this panel is deduced over a white background, it looks . Round letters there are any black divorces.


For the correct operation of algorithms  smoothings (including ClearType) it is necessary for each pixel precisely the nobility and color of a font, and background color under it. At you ClearType thinks that a background dark blue, and actually dark blue with the white. From here result.


I think, to make anything it is impossible. Only if to do
all composition, except the text, on . And then atop to draw the text.

3

Re: ClearType and knockout

Hello, the Anonymous author, you wrote:

...  looks as . Whether It is possible to make with it something? Was specific, the scenario such: the dark blue translucent panel (opacity  80 %, that is, almost opaque), atop  the white text Tahomoj, 14px. When this panel is deduced over a white background, it looks . Round letters there are any black divorces.


How you think why in Windows/Aero, in windows caption letters on white glow a background?


In GDI ClearType knows nothing about an alpha the channel. Therefore ClearType by means GDI always it should be drawn on something opaque.

Otherwise  here such crap as in caption here


http://www.terrainformatica.com/htmlayout/images/skinned.png

Compare to letters on not pro-place background in the same place. It is all GDI and it ClearType


And now we look on ClearType in Direct2D/DirectWrite:


https://dl.dropboxusercontent.com/u/14981836/clear-type.png

You see a difference? DirectWrite knows and is able to draw with an alpha.

Perhaps I CT incorrectly prepare? More precisely, not I, and  which I use. I adjusted-adjusted CT, but the text as  is dreadful, and looks. Win8, if that.


Sciter  also will be to you .

4

Re: ClearType and knockout

Hello, c-smile, you wrote:

> Perhaps I CT incorrectly prepare? More precisely, not I, and  which I use. I adjusted-adjusted CT, but the text as  is dreadful, and looks. Win8, if that.

CS> Sciter  also will be to you .


And you thought, about what  I speak?
big_smile

By the way, and D2D at you that,  the text on everyone move windows? How it defines, what the background under the transparent window was replaced? Mahlo that about it I know.

5

Re: ClearType and knockout

Hello, the Anonymous author, you wrote:

Hello, c-smile, you wrote:

>> Perhaps I CT incorrectly prepare? More precisely, not I, and  which I use. I adjusted-adjusted CT, but the text as  is dreadful, and looks. Win8, if that.

CS>> Sciter  also will be to you .

And you thought, about what  I speak?
big_smile


Well Sciter too different happens. Sciter v GDI backend with problems which I stated 1.*.*.* it.

Sciter 3.*.*.* it Direct2D (and GDI + on XP).

By the way, and D2D at you that,  the text on everyone move windows? How it defines, what the background under the transparent window was replaced? Mahlo that about it I know.


" the text on everyone move windows" - are not present, what for it?


Window it bitmap c the alpha channel. Move windows (if on it of nothing it changes on a course) simply translate (xpos, ypos) inside GPU.

The cheapest operation. Yes you and itself can look in Process Explorer. There CPU - 0 % at window drag and drop.

6

Re: ClearType and knockout

Hello, c-smile, you wrote:

CS> the Window it bitmap c the alpha channel. Move windows (if on it of nothing it changes on a course) simply translate (xpos, ypos) inside GPU.
CS> the cheapest operation.


And nevertheless whence D2D takes a background? It after all generally result of a complex composition. Whether from  that?

7

Re: ClearType and knockout

Hello, wildwind, you wrote:

W> Hello, c-smile, you wrote:

CS>> the Window it bitmap c the alpha channel. Move windows (if on it of nothing it changes on a course) simply translate (xpos, ypos) inside GPU.
CS>> the cheapest operation.

W> And nevertheless whence D2D takes a background? It after all generally result of a complex composition. Whether from  that?


surfaces it switches to transparent on gray scale alpha blending.


with sciter.exe and an example \sdk\samples\basics\test-font-rendering.htm


There there is a button "glass" (at the left below, it is pushed)

http://www.terrainformatica.com/wp-content/uploads/2014/07/sciter-video.jpg

All you will see with magnifying glass.