Since the range is small and fixed, fixed point format, or (signed)
normalized integers, will have superior quality compared to floats using
same number of bits.
Several image formats, including PNG, do support 16-bit images.
Then there is KTX image format, with reference code at
https://github.com/KhronosGroup/KTX-Software which directly supports OpenGL
and Vulkan formats like GL_R16_SNORM / VK_FORMAT_R16_SNORM.

On Wed, May 13, 2020 at 10:22 AM Werner LEMBERG <w...@gnu.org> wrote:

>
> > [...] Initially I thought that FreeType supports saving glyph
> > bitmaps to file.  But Alexei clarified that.  So now I think the
> > saving part can be left to the external application to decide.
>
> OK.
>
> >>> What 'image' dimensions are we talking about?  Usually, Freetype
> >>> glyph bitmaps are very small, and compressing them would be a
> >>> complete waste of time.
> >>
> >> Ah, the (assumed/estimated) number of the pixels should be
> >> discussed for first... Anuj, please give us some informations.
> >
> > The output DF will be slightly larger than the original one (20-30%
> > in dimension) to contain the spread.
>
> This means that compression can be ignored IMHO :-)
>
> > Also, I can see **Message not available* *after my emails in the
> > freetype-devel archives.
>
> AFAICS, this is a pure accident.  The (automatically) deleted messages
> are spam, I reckon.
>
> > Am I doing something wrong?
>
> No, I don't think so.
>
>
>     Werner
>
>

Reply via email to