Skip to content

Commit

Permalink
Cairo scale font creation from font face: Pull method to superclass
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchodias committed Oct 18, 2023
1 parent 5afab0e commit 3931316
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 10 additions & 0 deletions src/Alexandrie-Cairo/AeCairoFontFace.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ AeCairoFontFace class >> externallyFree: aHandle [
self ffiCall: #( void cairo_font_face_destroy ( void * aHandle) )
]

{ #category : #'instance creation' }
AeCairoFontFace >> newScaledFontWithFontMatrix: aFontMatrix userToDeviceMatrix: aUserToDeviceCairoMatrix options: theFontOptions [

^ AeCairoScaledFont
fontFace: self
fontMatrix: aFontMatrix
userToDeviceMatrix: aUserToDeviceCairoMatrix
options: theFontOptions
]

{ #category : #'private - ffi' }
AeCairoFontFace >> status [

Expand Down
10 changes: 0 additions & 10 deletions src/Alexandrie-Cairo/AeCairoFreetypeFontFace.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ AeCairoFreetypeFontFace class >> unownedNewFor: aFreetypeFontFace [
0 ) )
]

{ #category : #'instance creation' }
AeCairoFreetypeFontFace >> newScaledFontWithFontMatrix: aFontMatrix userToDeviceMatrix: aUserToDeviceCairoMatrix options: theFontOptions [

^ AeCairoScaledFont
fontFace: self
fontMatrix: aFontMatrix
userToDeviceMatrix: aUserToDeviceCairoMatrix
options: theFontOptions
]

{ #category : #'private - ffi' }
AeCairoFreetypeFontFace >> synthesize [

Expand Down

0 comments on commit 3931316

Please sign in to comment.