freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] [GSoC] [Doubt] Bitmap rendering


From: k kushal
Subject: Re: [ft-devel] [GSoC] [Doubt] Bitmap rendering
Date: Fri, 23 Jun 2017 21:45:11 +0530

Is it?  IIRC, we don't want to store BMP files on disk because they
are extremely large compared to compressed formats, right?  So we have
to convert those files anyway, which leads to the loss of any speed
advantage, I believe.

> Working well for 8-bit( I'm using this for monochrome and
> anti-aliased) and 24-bit bitmaps(LCD rendering).

PNG also supports this.

> Also, I am able to reproduce them on browsers like
> Mozilla/ IE / Chromium / Chrome / Microsoft Edge.

Ditto for PNG.

> I've thought of doing it using PNG but we need some external
> libraries for that (libpng).

This is not a problem, I think.  FreeType itself already needs libpng;
using it doesn't add any new prerequisite.

I've written code to generate PNG(s) instead of bitmaps for all types.
(will give code tomorrow)
I am using 32 bit (RGBA) PNG(s) for all types (mono, anti-aliased etc).
I think alpha channel will be helpful for certain visualisations which take 
one image (glyph) to the background and one to foreground.

I am also working on writing GIF(s) for visualising differences.
I've attached two images that are produced using this.
( I manually edited a glyph and then used it for comparision )

I wanted to know if anyone knew how to display the pixel grid 
(like the one in ftgrid) on webpage. (Arvinder ?)

And also to give different emphasis on minor and major differences
using different shades of a colour seems to work.
( Working on these)

I've written code to generate webpages to give a table of all the 
measurements of the glyphs (all available from FT_GlyphSlotRec).
I've also attached a screenshot of basic html page I generated today.


Attachment: gray.gif
Description: GIF image

Attachment: lcd.gif
Description: GIF image

Attachment: screen.png
Description: PNG image


reply via email to

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