Skip to content

Commit

Permalink
TFFI calls are now in strict mode by default in P12
Browse files Browse the repository at this point in the history
Fixes #49
  • Loading branch information
tinchodias committed Feb 20, 2024
1 parent 18f6344 commit 78f3faf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
12 changes: 7 additions & 5 deletions src/Alexandrie-Cairo/AeCairoFreetypeFontFace.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ AeCairoFreetypeFontFace class >> newForFace: aFTFace [

{ #category : #'instance creation' }
AeCairoFreetypeFontFace class >> unownedNewFor: aFreetypeFontFace [
"See: https://www.cairographics.org/manual/cairo-FreeType-Fonts.html#cairo-ft-font-face-create-for-ft-face"

^ self ffiCall: #(
AeCairoFreetypeFontFace
cairo_ft_font_face_create_for_ft_face (
void* aFreetypeFontFace,
0 ) )
^ self
ffiCall: #(
AeCairoFreetypeFontFace
cairo_ft_font_face_create_for_ft_face (
void* aFreetypeFontFace,
int 0 ) )
]

{ #category : #accessing }
Expand Down
1 change: 1 addition & 0 deletions src/Alexandrie-Cairo/AeCairoScaledFont.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ AeCairoScaledFont >> glyphsFrom: bytes size: byteCount intoGlyphs: glyphs size:
nil,
nil,
nil ) )
options: #( - optStrict )
]

{ #category : #API }
Expand Down
18 changes: 10 additions & 8 deletions src/Alexandrie-Harfbuzz/AeHbBlob.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,16 @@ AeHbBlob class >> unownedNewFrom: data size: dataSize [
See: https://harfbuzz.github.io/harfbuzz-hb-blob.html#hb-blob-create"

^ self ffiCall: #(
hb_blob_t *
hb_blob_create (
const char *data,
int dataSize,
1, "HB_MEMORY_MODE_READONLY"
nil,
nil ) )
^ self
ffiCall: #(
hb_blob_t *
hb_blob_create (
const char *data,
int dataSize,
1, "HB_MEMORY_MODE_READONLY"
nil,
nil ) )
options: #( - optStrict )
]

{ #category : #'instance creation' }
Expand Down

0 comments on commit 78f3faf

Please sign in to comment.