Skip to content

Commit 5d36030

Browse files
committed
Rename 2 methods to use "Into" instead of "On" for consistency
1 parent 96878b3 commit 5d36030

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Alexandrie-Harfbuzz/AeHbBuffer.class.st

+6-6
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ AeHbBuffer >> cairoGlyphArrayForFace: freetypeFace size: fontSize [
9999
length = 0 ifTrue: [ ^ AeCairoGlyphArray newOf: 0 ].
100100

101101
infos := FFIExternalArray
102-
fromHandle: (self getGlyphInfosOn: ExternalAddress null)
102+
fromHandle: (self getGlyphInfosInto: ExternalAddress null)
103103
type: AeHbGlyphInfo
104104
size: length.
105105
positions := FFIExternalArray
106-
fromHandle: (self getGlyphPositionsOn: ExternalAddress null)
106+
fromHandle: (self getGlyphPositionsInto: ExternalAddress null)
107107
type: AeHbGlyphPosition
108108
size: length.
109109

@@ -172,7 +172,7 @@ AeHbBuffer >> flags: flags [
172172
]
173173

174174
{ #category : #'accessing - output' }
175-
AeHbBuffer >> getGlyphInfosOn: aPointer [
175+
AeHbBuffer >> getGlyphInfosInto: aPointer [
176176
"Returns a collection of `AeHbGlyphInfo` with glyph information. Returned pointer is valid as long as buffer contents are not modified.
177177
178178
See: https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-get-glyph-infos"
@@ -186,7 +186,7 @@ AeHbBuffer >> getGlyphInfosOn: aPointer [
186186
]
187187

188188
{ #category : #'accessing - output' }
189-
AeHbBuffer >> getGlyphPositionsOn: aPointer [
189+
AeHbBuffer >> getGlyphPositionsInto: aPointer [
190190
"See: https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-get-glyph-positions"
191191

192192
^ self ffiCall: #(
@@ -203,7 +203,7 @@ AeHbBuffer >> glyphInfos [
203203

204204
| lengthPointer aHandle |
205205
lengthPointer := FFIUInt32 newBuffer.
206-
aHandle := self getGlyphInfosOn: lengthPointer.
206+
aHandle := self getGlyphInfosInto: lengthPointer.
207207
"Library has responsability to free it."
208208

209209
^ FFIExternalArray
@@ -219,7 +219,7 @@ AeHbBuffer >> glyphPositions [
219219

220220
| lengthPointer aHandle |
221221
lengthPointer := FFIUInt32 newBuffer.
222-
aHandle := self getGlyphPositionsOn: lengthPointer.
222+
aHandle := self getGlyphPositionsInto: lengthPointer.
223223
"Library has responsability to free."
224224

225225
^ FFIExternalArray

0 commit comments

Comments
 (0)