Skip to content

Commit

Permalink
Add missing printing protocol in AeHbLanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchodias committed Nov 30, 2023
1 parent 37fa359 commit 76e8cab
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Alexandrie-Harfbuzz/AeHbLanguage.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,24 @@ AeHbLanguage class >> startUp: isResuming [

isResuming ifTrue: [ self resetKnownInstances ]
]

{ #category : 'printing' }
AeHbLanguage >> printOn: aStream [

super printOn: aStream.
aStream
nextPut: $(;
print: self toString;
nextPut: $)
]

{ #category : 'converting' }
AeHbLanguage >> toString [
"Answer a string representation.
See: https://harfbuzz.github.io/harfbuzz-hb-common.html#hb-language-to-string"

^ self ffiCall: #(
const char * hb_language_to_string ( self )
)
]

0 comments on commit 76e8cab

Please sign in to comment.