Hi Eduardo,

I don't know much about XCB, but I recently implemented glyph drawing as
part of libfreerdpgdi. Unfortunately, if you're porting xfreerdp, you don't
get to benefit from libfreerdpgdi. I've been doing it a little bit
differently for the purpose of simplicity. Take a look at gdi_glyph_convert
here:

http://freerdp.git.sourceforge.net/git/gitweb.cgi?p=freerdp/freerdp.git;a=blob;f=libfreerdpgdi/gdi_color.c;h=4b987be0a3b7152d069743a1816a80b6f9484527;hb=refs/heads/libfreerdpgdi

<http://freerdp.git.sourceforge.net/git/gitweb.cgi?p=freerdp/freerdp.git;a=blob;f=libfreerdpgdi/gdi_color.c;h=4b987be0a3b7152d069743a1816a80b6f9484527;hb=refs/heads/libfreerdpgdi>glyphs
are received in 1-bit-per-pixel format, which is a bit harder to use when
you want to do blitting operations. For libfreerdpgdi, I'm converting the
glyphs to 1-byte-per-pixel format, so that I don't need to continuously
extract the needed bits when blitting glyphs. A bit set to '1' is white, and
a bit set to '0' is black. If you want to blit '1' with a 16bpp pixel, you
need to convert '1' to 16bpp, such that you get 0xFFFF for your glyph pixel.
If the glyph pixel is '0', you'd get 0x0000.

On Mon, Dec 13, 2010 at 3:17 PM, eduardo fiss beloni <
eduardobel...@yahoo.com.br> wrote:

> Hello everybody
>
> We are currently working on a port of xfreerdp to use XCB. Our main goal is
> to impove performance of the X operations.
>
> So far, we've got a few issues when rendering text glyphs (see attached
> screenshot). Would be really great if anyone could help us, cause we are
> struggling with it. Here is the main repository of the port (you should
> checkout a branch called wip/xcb):
> http://gitorious.org/+ossystems-hackers/freerdp/ossystems-hackers-tree
>
> Thanks very much,
>
> Eduardo Fiss Beloni
> bel...@ossystems.com.br
> 55 53 8117 8244
>
>
>
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> Freerdp-devel mailing list
> Freerdp-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freerdp-devel
>
>
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Freerdp-devel mailing list
Freerdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to