[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype-devel] Re: GSOC - Distance Fields
From: |
Alexei Podtelezhnikov |
Subject: |
Re: [Freetype-devel] Re: GSOC - Distance Fields |
Date: |
Mon, 3 Aug 2020 09:52:56 -0400 |
Hi Anuj,
> I have mostly completed the bitmap to SDF renderer (bsdf), there
> are only a few things remaining such as support for all pixel
> modes (currently it only work with FT_PIXEL_MODE_GRAY),
Only FT_PIXEL_MODE_MONO is necessary to add. I do not understand how
LCD or BGRA can be used for SDF; GRAY2 and GRAY4 are defunct.
> After that I have not decided what to do. I have a few things in mind (adding
> floating point support, removing overlaps [skip]
If I understand correctly, overlaps cause unexpected discontinuity in
SDF, which otherwise should not have any. I doubt that detecting and
removing contour overlaps is productive. I would rather deal with the
discontinuity directly. Perhaps there is a clever way to ignore
smaller distances that unexpectedly have an opposite sign. The
distance cannot change by more than the grid size. If it does, ignore
the offending value.
> CascadiaCode.ttf
Oh those variable fonts with overlaps... When you read
https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#simpleGlyphFlags
on OVERLAP_SIMPLE, there is a glimmer of hope: "either set this flag
in the derived glyph data, or else should merge contours to remove
overlap". So the flag is basically required in static fonts. I hope it
will be required in variable fonts too in the next version of specs.
Alexei
- Re: [Freetype-devel] Re: GSOC - Distance Fields, Anuj Verma, 2020/08/03
- Re: [Freetype-devel] Re: GSOC - Distance Fields,
Alexei Podtelezhnikov <=
- Re: [Freetype-devel] Re: GSOC - Distance Fields, Anuj Verma, 2020/08/03
- Re: [Freetype-devel] Re: GSOC - Distance Fields, Alexei Podtelezhnikov, 2020/08/06
- Re: [Freetype-devel] Re: GSOC - Distance Fields, Anuj Verma, 2020/08/07
- Re: [Freetype-devel] Re: GSOC - Distance Fields, Alexei Podtelezhnikov, 2020/08/07
- Re: [Freetype-devel] Re: GSOC - Distance Fields, Anuj Verma, 2020/08/07
- Re: [Freetype-devel] Re: GSOC - Distance Fields, Alexei Podtelezhnikov, 2020/08/07
- Re: [Freetype-devel] Re: GSOC - Distance Fields, Alexei Podtelezhnikov, 2020/08/08
- Re: [Freetype-devel] Re: GSOC - Distance Fields, Anuj Verma, 2020/08/09
- Re: [Freetype-devel] Re: GSOC - Distance Fields, Anuj Verma, 2020/08/13
- Re: [Freetype-devel] Re: GSOC - Distance Fields, Werner LEMBERG, 2020/08/13