freetype-devel
[Top][All Lists]
Advanced

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

RE: [GSoC] Status of font-rs port


From: Anurag Thakur
Subject: RE: [GSoC] Status of font-rs port
Date: Fri, 16 Sep 2022 14:31:15 +0000

Hello,

>
Can also look at some more challenging fonts with very fine curves, eg, Windows' KUNSTLER.TTF

I tested it, and the rasterizer output is almost identical.

 

Curiously, for this font, the dense rasterizer is faster even till 200-300 ppem font size

Relevant files attached.

Regards

Anurag

 

From: Alexei Podtelezhnikov <apodtele@gmail.com>
Sent: Friday, September 16, 2022 8:04 AM
To: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
Cc: freetype-devel@nongnu.org
Subject: Re: [GSoC] Status of font-rs port

 

 

Hi Anurag,

 

The rasterizer code (including SIMD) has been integrated into the FreeType and seems to be working fine,

Comparison images: dense and smooth renderer (outlines and dots disabled)

 

This is a really nice progress indeed. The images look almost identical. Can also look at some more challenging fonts with very fine curves, eg, Windows' KUNSTLER.TTF. We need to make sure that both rasterizers are tuned to similar quality.

 

The performance is comparable (sometimes better) to the smooth renderer for small font sizes, however it is several times slower for larger sizes

 

This is really quite stunning. I look forward to further progress. Can you confirm that straight line drawing still takes most of the time with the dense rastrerizer?

 

I am thinking of working on the “Direct rendering mode” next. Any pointers regarding that would be appreciated.

 

I am not sure about this one. The whole point of direct mode is to leave the canvas allocation to the client. The dense rasterizer defeats this purpose.

 

And just for reference

List of bugs I have encountered:
1. Ftgrid produces weird output and crashes at large sizes(~170ppem)

2. The inverted bitmap pitch causes rendering differences (can be seen in the “Q” letter of the ftview output) 

 

Hmm. Is this only when Q is on the last row? That would be an ftview bug then. I do not see any problems with parentheses? Is this 2.12.1 demos?
 

3. Ftgrid crashes when selecting monochrome output

 

Do you think this is also a pitch sign bug?

 

4. [TODO] lcd rendering needs to be implemented

 

This is either three interlaced bitmaps after shifts, or 3x resolution with filtering. You should be able to copy this from smooth.

 

Best,

Alexei

Attachment: ftgrid_m_smooth.png
Description: ftgrid_m_smooth.png

Attachment: ftview_dense.png
Description: ftview_dense.png

Attachment: ftview_smooth.png
Description: ftview_smooth.png

Attachment: kunstler_comp.png
Description: kunstler_comp.png

Attachment: kunstler_comp_expanded.png
Description: kunstler_comp_expanded.png

Attachment: ftgrid_g_dense.png
Description: ftgrid_g_dense.png

Attachment: ftgrid_g_smooth.png
Description: ftgrid_g_smooth.png

Attachment: ftgrid_m_dense.png
Description: ftgrid_m_dense.png


reply via email to

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