freetype
[Top][All Lists]
Advanced

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

?????? About freetype2 bitmap strike


From: ????????????
Subject: ?????? About freetype2 bitmap strike
Date: Thu, 5 Dec 2024 14:01:01 +0800

Hi,


The attachment contains the test code and font.


test result??



I don't know if this is a bug or some other reason, I hope to get your 
help,Thank you.






????????????
990087812@qq.com



 




------------------ ???????? ------------------
??????:                                                                         
                                               "freetype@nongnu.org"            
                                                                        
<mpsuzuki@hiroshima-u.ac.jp&gt;;
????????:&nbsp;2024??12??5??(??????) ????1:25
??????:&nbsp;"freetype"<freetype@nongnu.org&gt;;
????:&nbsp;"????????????"<990087812@qq.com&gt;;
????:&nbsp;Re: About freetype2 bitmap strike



Hi,

Could you post your testing code written in C?
(please do not copy &amp; paste it in your HTML email, please post as an 
attachment)

Regards,
mpsuzuki

P.S.
I hope you can reply to freetype@nongnu.org.
If you reply to me privately with no explanation why it is private, I will post 
it to the public list.
Thanks in advance!

On 2024/12/05 12:38, ???????????? via FreeType users wrote:
&gt; Hi:
&gt; &amp;nbsp; &amp;nbsp; I use freetype2 to retrieve the bitmap data embedded 
in the font, Using FT_LOAD_SBIS_ONLY.
&gt; In the "simsun.ttf" font, some characters can be obtained while others 
cannot.
&gt; Use "FontForge" software to view that these characters all contain bitmap 
data.
&gt; 
&gt; 
&gt; for example:
&gt; &amp;nbsp; &amp;nbsp; characters "??", its Unicode is 0x00A4??The bitmap 
data obtained using freetype2 is consistent with the bitmap data viewed using 
FontForge software.
&gt; As shown in the following figure.
&gt; 
&gt; &amp;nbsp; &amp;nbsp;
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; &amp;nbsp; &amp;nbsp; But, characters "A", its Unicode is 
0x0041??Freetype2 cannot obtain bitmap data. But using FontForge software, it 
can be seen that there is bitmap data.
&gt; 
&gt; As shown in the following figure.
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; My test code??
&gt; 
&gt; int ft_error;
&gt; 
&gt; FT_Select_Size(face, 4);
&gt; 
&gt; ft_error = FT_Load_Char(face, 0x00A4, FT_LOAD_RENDER | FT_LOAD_SBITS_ONLY 
| FT_LOAD_MONOCHROME);
&gt; 
&gt; ft_error is 0;
&gt; 
&gt; &amp;nbsp;
&gt; 
&gt; ft_error = FT_Load_Char(face, 0x0041, FT_LOAD_RENDER | FT_LOAD_SBITS_ONLY 
| FT_LOAD_MONOCHROME);
&gt; 
&gt; ft_error is 6;
&gt; 
&gt; 
&gt; 
&gt; 
&gt; &amp;nbsp; &amp;nbsp; I found that the error occurred in 
tt_stit_decoder_load_image function and returns NoBitmap.
&gt; 
&gt; But use "FontForge" software open the "simsun.ttf" and view characters 
"A",We can see that it has bitmap data.
&gt; 
&gt; I don't know if this is a bug or some other reason, I hope to get your 
help,Thank you.
&gt; 
&gt; 
&gt; 
&gt; 
&gt; My freetype2 version is V2.13.0, and the attachment is the "simsun. ttf" 
font.
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; ????????????
&gt; 990087812@qq.com
&gt; 
&gt; 
&gt; 
&gt; &amp;nbsp;

Attachment: DD063705@91CB6938.9D415167.png
Description: Binary data


reply via email to

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