Skip to content

Commit

Permalink
Fix javadoc links
Browse files Browse the repository at this point in the history
  • Loading branch information
jwharm committed Jul 13, 2024
1 parent c82c81c commit d07fdae
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/java/org/freedesktop/cairo/FTSynthesize.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
* A set of synthesis options to control how FreeType renders the glyphs for a particular font face.
* <p>
* Individual synthesis features of a {@link FTFontFace} can be set using
* {@link FTFontFace#setSynthesize(FTSynthesize)}, or disabled using {@link FTFontFace#unsetSynthesize(FTSynthesize)}.
* The currently enabled set of synthesis options can be queried with {@link FTFontFace#getSynthesize()}.
* {@link FTFontFace#setSynthesize}, or disabled using {@link FTFontFace#unsetSynthesize}.
* The currently enabled set of synthesis options can be queried with {@link FTFontFace#getSynthesize}.
* <p>
* Note that when synthesizing glyphs, the font metrics returned will only be estimates.
*
Expand Down Expand Up @@ -56,12 +56,19 @@ public enum FTSynthesize implements Flag {

/**
* Get the value of this FTSynthesize enum
*
* @return {@link #BOLD}, {@link #OBLIQUE} or a combination of both
*/
public int getValue() {
return value;
}

/**
* Create an FTSynthesize enum for this value
*
* @param value the value of the enum
* @return a new FTSynthesize enum member
*/
public static FTSynthesize of(int value) {
return value == 1 ? BOLD : OBLIQUE;
}
Expand Down

0 comments on commit d07fdae

Please sign in to comment.