This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Drawing a font with ClearType?


Drawing a font with ClearType?

Postby davidboydca » Mar 28, 2006 @ 7:35pm

I can display normal text just fine with GapiDraw.

I do the following using CGapiDisplay::CreateOffscreenDisplay():

CGapiSurface::GetDC()
CreateFontIndirect()
ExtTextOut()
CGapiSurface::ReleaseDC()

Now, I'm trying to show ClearType. I set the flag like so:

logFont.lfQuality = CLEARTYPE_QUALITY;

and my ensured my phone (MPX220) can support it by turning it only globally.

However, I just see normal text, not ClearType.

I found this on Google Groups:
---------------------------------
What's the bit depth of the bitmap you're creating? FYI on CE if you try to draw antialiased or cleartype text to a memory dc, it must have a bitmap from CreateCompatibleBitmap selected into it (it has to match the bit depth and color masks of the primary), otherwise it'll draw draft text.
---------------------------------

So, is the bitmap that GapiDraw uses created using CreateCompatibleBitmap() or does it use some other bitdepth?

Thanks,
David
davidboydca
pm Member
 
Posts: 6
Joined: Jan 7, 2006 @ 3:49am


Postby norwy » May 4, 2006 @ 2:39am

norwy
pm Member
 
Posts: 39
Joined: Aug 13, 2004 @ 4:10pm
Location: Paris


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron