[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: need help with freetype + xlib.
From:       First Last <begre1929 () yahoo ! com>
Date:       2013-06-18 18:35:51
Message-ID: 1371580551.89908.YahooMailNeo () web164903 ! mail ! bf1 ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Glynn,
 

>> so I guess,  length of face->glyph->bitmap.buffer = 
>> 1(gray lvl)*16(width)*8(rows)=128 unsigned chars, right ?
>
>Right answer, wrong reasoning; width should be replaced by pitch. The
>two values may differ if there is padding between lines.

thx for this.

-Nicoo

[Attachment #5 (text/html)]

<html><body><div style="color:#000; background-color:#fff; font-family:times new \
roman, new york, times, serif;font-size:12pt">Hi Glynn,<br>&nbsp;<br><div \
style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div \
style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div \
class="y_msg_container">&gt;&gt; so I guess,&nbsp; length of \
face-&gt;glyph-&gt;bitmap.buffer = <br>&gt;&gt; 1(gray lvl)*16(width)*8(rows)=128 \
unsigned chars, right ?<br>&gt;<br>&gt;Right answer, wrong reasoning; width should be \
replaced by pitch. The<br>&gt;two values may differ if there is padding between \
lines.<br><br>thx for this.<br><br>-Nicoo<br></div> </div> </div>  \
</div></body></html>



_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: freedesktop-xorg@progressive-comp.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic