Official mirror of https://gitlab.freedesktop.org/freetype/freetype
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tag:
Branch:
Tree:
583dabf291
1076-regression-ft_render_glyph-returns-error-when-trying-to-render-bitmap-otb-fonts
1100-sdf-improvements
1100-sdf-precision-improvement
2.6.5
BRANCH-2-1-5
CACHE
GSoC-2017-ewaldhew
GSoC-2017-ewaldhew-wip
GSoC-2017-kushal
GSoC-2018-nikhil
GSoC-2018-parth
GSoC-2019-moazin
GSoC-2019-nikhil
GSoC-2020-anuj
GSoC-2020-greg
GSoC-2020-priyesh
GSoC-2023-Ahmet
Harmony
LAYOUT
OpenType-1.8
RGB
VER-2-0-4-PATCH
adjust
anuj-distance-field
apodtele-master-patch-38950
apodtele-master-patch-56869
apodtele-master-patch-68578
arv-test
arv-testing
arv-work
autohinter-properties
bitmap_convert
check-deprecated-warning-for-macosx
cmakelists-updates
cmap32
color
david-pic-changes
dbgmem-more-limiters
div-by-zero
ewaldhew-cleaned
ewaldhew-wip
fix-sdf-squared-distances
fix-x86_32.x86-compilation
gsoc-2023-ahmet-final
gsoc-anurag-2022
gsoc-anurag-2022-docs
gsoc-anurag-2022-final
gsoc-anurag-2023
gsoc-anurag-2023-docs-final
gsoc-anurag-2023-final
gsoc-anurag-docs-2023
gsoc-craig-2023
gsoc-craig-2023-final
hdmx-advances
hooks-via-module-property
int-not32-changes
int-not32-changes-2017
internal-zlib-update
master
msbuild-ci
msbuild-test
ot-svg-clean
parthw-cleaned
parthw-pk-vf
parthw-wip
priyesh_LogLibrary
remove_sse2
slot-inflate
smooth_malloc
truetype-mm
unclamp
unsigned-revisions
update-zlib-sources
wl/colr
wl/meson-logging
BETA-5
BETA-6
BETA-7
BETA-8
CACHE-STEP-1
CACHE-STEP-2
DATE-050920
PRE-2-0-1
PRE-2-0-6
RELEASE-2-0
TEST-2-0-9
VER-2-0
VER-2-0-1
VER-2-0-2
VER-2-0-2-TEST
VER-2-0-3
VER-2-0-4
VER-2-0-5
VER-2-0-6
VER-2-0-7
VER-2-0-8
VER-2-0-9
VER-2-1-0
VER-2-1-1
VER-2-1-1-RC1
VER-2-1-10
VER-2-1-2
VER-2-1-2-RC1
VER-2-1-3
VER-2-1-3-RC1
VER-2-1-3-RC2
VER-2-1-3-RC3
VER-2-1-4
VER-2-1-4-RC1
VER-2-1-4-RC2
VER-2-1-5
VER-2-1-5-RC1
VER-2-1-5-RC2
VER-2-1-6
VER-2-1-7
VER-2-1-8
VER-2-1-8-RC1
VER-2-1-9
VER-2-10-0
VER-2-10-1
VER-2-10-2
VER-2-10-3
VER-2-10-4
VER-2-11-0
VER-2-11-1
VER-2-12-0
VER-2-12-1
VER-2-13-0
VER-2-13-1
VER-2-13-2
VER-2-13-3
VER-2-2-0
VER-2-2-0-RC1
VER-2-2-0-RC2
VER-2-2-0-RC3
VER-2-2-0-RC4
VER-2-2-1
VER-2-3-0
VER-2-3-0-FINAL
VER-2-3-0-RC1
VER-2-3-0-RC2
VER-2-3-1
VER-2-3-1-FINAL
VER-2-3-10
VER-2-3-11
VER-2-3-12
VER-2-3-2
VER-2-3-3
VER-2-3-4
VER-2-3-5
VER-2-3-5-REAL
VER-2-3-6
VER-2-3-7
VER-2-3-8
VER-2-3-9
VER-2-4-0
VER-2-4-1
VER-2-4-10
VER-2-4-11
VER-2-4-12
VER-2-4-12-beta
VER-2-4-2
VER-2-4-3
VER-2-4-4
VER-2-4-5
VER-2-4-6
VER-2-4-7
VER-2-4-8
VER-2-4-9
VER-2-5-0
VER-2-5-0-1
VER-2-5-1
VER-2-5-2
VER-2-5-3
VER-2-5-4
VER-2-5-5
VER-2-6
VER-2-6-1
VER-2-6-2
VER-2-6-3
VER-2-6-4
VER-2-6-5
VER-2-7
VER-2-7-1
VER-2-8
VER-2-8-1
VER-2-9
VER-2-9-1
VER-2-BETA2
VER-2-BETA3
VER-2-BETA4
freetype
freetype2
import
start
${ noResults }
freetype/devel
Shao Yu Zhang
f04d81751a
This commit enables OpenType's COLR/CPAL table handling; a typical application are color emojis that can be scaled to any size. If the color palette does not exist or is invalid, the rendering step rasterizes the outline instead. The current implementation assumes that the foreground is black. Enable this by defining option TT_CONFIG_OPTION_COLOR_LAYERS. There are still some issues with metrics; additionally, an API to fetch color layers is missing. * devel/ftoption.h, include/freetype/config/ftoption.h (TT_CONFIG_OPTION_COLOR_LAYERS): New macro. * include/freetype/internal/ftobjs.h (FT_Glyph_LayerRec, FT_Colr_InternalRec): New structures. (FT_Slot_InternalRec): Add `color_layers' field. * include/freetype/internal/sfnt.h (TT_Load_Colr_Layer_Func, TT_Blend_Colr_Func): New function types. (SFNT_Interface): Add `load_colr', `free_colr', `load_colr_layer', and `colr_blend' fields. * include/freetype/internal/tttypes.h (TT_FaceRec): Add `colr_and_cpal' field. * include/freetype/internal/tttags. (TTAG_COLR, TTAG_CPAL): New macros. * src/sfnt/ttcolr.c, src/sfnt/ttcolr.h: New files. * src/base/ftobjs.c (ft_glyphslot_done, FT_Render_Glyph_Internal): Handle glyph color layers. * src/sfnt/Jamfile (_sources), src/sfnt/rules.mk (SFNT_DRV_SRC): Add `ttcolr.c'. * src/sfnt/sfdriver.c: Include `ttcolr.h'. (PUT_COLOR_LAYERS): New macro. Update call to `FT_DEFINE_SFNT_INTERFACE'. * src/sfnt/sfnt.c: Include `ttcolr.c'. * src/sfnt/sfobjs.c (sfnt_load_face): Load `COLR' and `CPAL' tables. (sfnt_done_face): Updated. * src/truetype/ttgload.c (TT_Load_Glyph): Handle color layers. |
7 years ago | |
---|---|---|
.. | ||
ft2build.h | Update copyright year. | 7 years ago |
ftoption.h | [sfnt] Preliminary support of coloured layer outlines. | 7 years ago |