Skip to content

Commit

Permalink
Freetype: Add binding for FT_Reference_Face
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchodias committed May 5, 2024
1 parent 410e8e0 commit d571a16
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Alexandrie-FreeType/AeFTFace.class.st
Expand Up @@ -172,6 +172,17 @@ AeFTFace >> flags [
^ AeFTFaceFlag bitFlagsAt: self faceFlags
]

{ #category : #finalization }
AeFTFace >> increaseReferenceCount [
"A counter gets initialized to 1 at the time an instance is created. This function increments the counter. `FT_Done_Face` then only destroys a face if the counter is 1, otherwise it simply decrements the counter.
This function helps in managing life-cycles of structures that reference FT_Face objects.
See: https://freetype.org/freetype2/docs/reference/ft2-face_creation.html#ft_reference_face"

^ self ffiCall: #(int FT_Reference_Face (self))
]

{ #category : #testing }
AeFTFace >> isBold [

Expand Down

0 comments on commit d571a16

Please sign in to comment.