Skip to content

Commit

Permalink
Fix AeHbBuffer shape (revert part of 78d1c8e).
Browse files Browse the repository at this point in the history
Fixes #42
  • Loading branch information
tinchodias committed Nov 23, 2023
1 parent fe57261 commit ebd4db4
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
32 changes: 29 additions & 3 deletions src/Alexandrie-Harfbuzz/AeHbGlyphInfo.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ Class {
#classVars : [
'OFFSET_CLUSTER',
'OFFSET_CODEPOINT',
'OFFSET_MASK'
'OFFSET_MASK',
'OFFSET_VAR1',
'OFFSET_VAR2'
],
#pools : [
'AeHbTypes'
Expand All @@ -40,9 +42,9 @@ AeHbGlyphInfo class >> fieldsDesc [
"/*< private >*/
hb_var_int_t var1;
hb_var_int_t var2;
hb_var_int_t var2;"
uint32 var1
uint32 var2"
uint32 var2
)
]

Expand Down Expand Up @@ -95,3 +97,27 @@ AeHbGlyphInfo >> printOn: aStream [
].

]

{ #category : #'accessing - structure variables' }
AeHbGlyphInfo >> var1 [
"This method was automatically generated"
^handle unsignedLongAt: OFFSET_VAR1
]

{ #category : #'accessing - structure variables' }
AeHbGlyphInfo >> var1: anObject [
"This method was automatically generated"
handle unsignedLongAt: OFFSET_VAR1 put: anObject
]

{ #category : #'accessing - structure variables' }
AeHbGlyphInfo >> var2 [
"This method was automatically generated"
^handle unsignedLongAt: OFFSET_VAR2
]

{ #category : #'accessing - structure variables' }
AeHbGlyphInfo >> var2: anObject [
"This method was automatically generated"
handle unsignedLongAt: OFFSET_VAR2 put: anObject
]
15 changes: 14 additions & 1 deletion src/Alexandrie-Harfbuzz/AeHbGlyphPosition.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Class {
#name : #AeHbGlyphPosition,
#superclass : #FFIExternalStructure,
#classVars : [
'OFFSET_VAR',
'OFFSET_X_ADVANCE',
'OFFSET_X_OFFSET',
'OFFSET_Y_ADVANCE',
Expand All @@ -31,7 +32,7 @@ AeHbGlyphPosition class >> fieldsDesc [
hb_position_t y_advance
hb_position_t x_offset
hb_position_t y_offset
"uint32 var <private> hb_var_int_t var;"
uint32 var "<private> hb_var_int_t var;"
)
]

Expand All @@ -49,6 +50,18 @@ AeHbGlyphPosition >> printOn: aStream [

]

{ #category : #'accessing - structure variables' }
AeHbGlyphPosition >> var [
"This method was automatically generated"
^handle unsignedLongAt: OFFSET_VAR
]

{ #category : #'accessing - structure variables' }
AeHbGlyphPosition >> var: anObject [
"This method was automatically generated"
handle unsignedLongAt: OFFSET_VAR put: anObject
]

{ #category : #accessing }
AeHbGlyphPosition >> xAdvanceFrom26Dot6 [

Expand Down

0 comments on commit ebd4db4

Please sign in to comment.