fix paint docs
fix bookmaker build for setHinting TBR=reed@google.com Bug: skia: Change-Id: Ieade1bca4cd369eb5a9431796c83e039ae69e81c Reviewed-on: https://skia-review.googlesource.com/c/168480 Reviewed-by: Cary Clark <caryclark@skia.org> Commit-Queue: Cary Clark <caryclark@skia.org> Auto-Submit: Cary Clark <caryclark@skia.org>
This commit is contained in:
parent
5b2bda70e5
commit
11407e56f2
@ -375,24 +375,25 @@ Set SkPaintDefaults_Hinting at compile time to change the default setting.
|
||||
##
|
||||
##
|
||||
|
||||
#Method void setHinting(Hinting hintingLevel)
|
||||
|
||||
#Method void setHinting(SkFontHinting hintingLevel)
|
||||
#In Hinting
|
||||
#Line # sets Hinting, glyph outline adjustment level ##
|
||||
Sets level of glyph outline adjustment.
|
||||
Does not check for valid values of hintingLevel.
|
||||
#Populate
|
||||
|
||||
#Table
|
||||
#Legend
|
||||
# Hinting # value # effect on generated glyph outlines ##
|
||||
##
|
||||
# kNo_Hinting # 0 # leaves glyph outlines unchanged from their native representation ##
|
||||
# kSlight_Hinting # 1 # modifies glyph outlines minimally to improve contrast ##
|
||||
# kNormal_Hinting # 2 # modifies glyph outlines to improve contrast ##
|
||||
# kFull_Hinting # 3 # modifies glyph outlines for maximum contrast ##
|
||||
##
|
||||
#Example
|
||||
SkPaint paint1, paint2;
|
||||
paint2.setHinting(kNormal_SkFontHinting);
|
||||
SkDebugf("paint1 %c= paint2\n", paint1 == paint2 ? '=' : ':');
|
||||
|
||||
#Param hintingLevel one of: kNo_Hinting, kSlight_Hinting, kNormal_Hinting, kFull_Hinting ##
|
||||
#StdOut
|
||||
paint1 == paint2
|
||||
##
|
||||
##
|
||||
##
|
||||
|
||||
#Method void setHinting(Hinting hintingLevel)
|
||||
#In Hinting
|
||||
#Populate
|
||||
|
||||
#Example
|
||||
SkPaint paint1, paint2;
|
||||
|
@ -344,6 +344,16 @@ FT_Load_Glyph
|
||||
##
|
||||
#Class SkFont
|
||||
##
|
||||
#Enum SkFontHinting
|
||||
#Const kNo_SkFontHinting 0
|
||||
##
|
||||
#Const kSlight_SkFontHinting 1
|
||||
##
|
||||
#Const kNormal_SkFontHinting 2
|
||||
##
|
||||
#Const kFull_SkFontHinting 3
|
||||
##
|
||||
##
|
||||
#Topic ##
|
||||
|
||||
#Topic Font_Manager
|
||||
|
@ -208,10 +208,17 @@ public:
|
||||
/** Sets level of glyph outline adjustment.
|
||||
Does not check for valid values of hintingLevel.
|
||||
|
||||
@param hintingLevel one of: kNo_Hinting, kSlight_Hinting, kNormal_Hinting, kFull_Hinting
|
||||
@param hintingLevel one of: kNo_SkFontHinting, kSlight_SkFontHinting,
|
||||
kNormal_SkFontHinting, kFull_SkFontHinting
|
||||
*/
|
||||
void setHinting(SkFontHinting hintingLevel);
|
||||
void setHinting(Hinting hintingLevel) {
|
||||
|
||||
/** Sets level of glyph outline adjustment.
|
||||
Does not check for valid values of hintingLevel.
|
||||
|
||||
@param hintingLevel one of: kNo_Hinting, kSlight_Hinting, kNormal_Hinting, kFull_Hinting
|
||||
*/
|
||||
void setHinting(Hinting hintingLevel) {
|
||||
this->setHinting((SkFontHinting)hintingLevel);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user