summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLiu Kunpeng(柳鲲鹏) <liukunpeng@ts-it.cn>2022-10-16 22:10:19 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2022-10-16 22:10:19 -0400
commitbb59c3c958cac48044dc5ce3c0a393196c627974 (patch)
treed274e1f5010d0f431357e914d2dcac45394cd455 /include
parent3ab1875cd22536b3d715b3b104b7fb744b9c25c5 (diff)
downloadfreetype2-bb59c3c958cac48044dc5ce3c0a393196c627974.tar.gz
* src/base/ftsynth.c (FT_GlyphSlot_Slant): New API with custom slant.
* include/freetype/ftsynth.h (FT_GlyphSlot_Slant): Declare it.
Diffstat (limited to 'include')
-rw-r--r--include/freetype/ftsynth.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/freetype/ftsynth.h b/include/freetype/ftsynth.h
index afc40b1d8..013f1cc78 100644
--- a/include/freetype/ftsynth.h
+++ b/include/freetype/ftsynth.h
@@ -68,10 +68,15 @@ FT_BEGIN_HEADER
FT_EXPORT( void )
FT_GlyphSlot_Embolden( FT_GlyphSlot slot );
- /* Slant an outline glyph to the right by about 12 degrees. */
+ /* Slant an outline glyph to the right by about 12 degrees. */
FT_EXPORT( void )
FT_GlyphSlot_Oblique( FT_GlyphSlot slot );
+ /* Slant an outline glyph by a given sine of an angle. */
+ FT_EXPORT( void )
+ FT_GlyphSlot_Slant( FT_GlyphSlot slot,
+ FT_Fixed slant );
+
/* */