freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Freetype] FreeType and Carbon PixMaps


From: Leonard Rosenthol
Subject: Re: [Freetype] FreeType and Carbon PixMaps
Date: Thu, 13 Mar 2003 12:11:00 -0500

At 1:16 PM +0000 3/13/03, James Turnbull wrote:
I am attempting to convert a Freetype FT_Bitmap into a Carbon (Mac OS) Pixmap. // Setup pixmap fields
src_pm->baseAddr = face->glyph->bitmap.buffer;
src_pm->rowBytes = face->glyph->bitmap.pitch;

...

// Copy onto the destination
CopyBits(src_pm, dst_bm, &src_rect, &dst_rect, srcCopy, NULL);


That won't work - an FT_Bitmap isn't 100% compatible with a Mac OS Pixmap. You will have to pixel by pixel copying...It's not a big deal...


Leonard
--
---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:address@hidden>
                                             <http://www.lazerware.com>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]