8000 Added <return:...> pragma to examples. · feenkcom/sparta@30c9261 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 30c9261

Browse files
committed
Added <return:...> pragma to examples.
1 parent d281fa1 commit 30c9261

File tree

44 files changed

+1448
-1194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1448
-1194
lines changed

src/Sparta-Cairo/SpartaCairoFreetypeFontFace.class.st

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,33 @@ Class {
44
#instVars : [
55
'freetypeFont'
66
],
7-
#category : 'Sparta-Cairo-Text'
7+
#category : #'Sparta-Cairo-Text'
88
}
99

1010
{ #category : #'instance creation' }
1111
SpartaCairoFreetypeFontFace class >> create: aFreetypeFont [
1212
"Create a cairo font face for a given freetype face"
13+
1314
<return: #SpartaCairoFreetypeFontFace>
1415
| aCairoFontFace aSynthesize |
15-
16-
aCairoFontFace := self primCreate: aFreetypeFont face handle asExternalPointer.
16+
aCairoFontFace := self
17+
primCreate: aFreetypeFont face getHandle asExternalPointer.
1718
aCairoFontFace status isSuccess
1819
ifFalse: [ SpartaCairoStatus signal: aCairoFontFace status ].
1920
aCairoFontFace autoRelease.
20-
21+
2122
aSynthesize := 0.
2223
aFreetypeFont isSimulatedBold
23-
ifTrue: [ aSynthesize := aSynthesize | SpartaCairoFreetypeSynthesize CAIRO_FT_SYNTHESIZE_BOLD value ].
24-
24+
ifTrue: [ aSynthesize := aSynthesize
25+
| SpartaCairoFreetypeSynthesize CAIRO_FT_SYNTHESIZE_BOLD value ].
26+
2527
aFreetypeFont isSimulatedItalic
26-
ifTrue: [ aSynthesize := aSynthesize | SpartaCairoFreetypeSynthesize CAIRO_FT_SYNTHESIZE_OBLIQUE value ].
27-
28+
ifTrue: [ aSynthesize := aSynthesize
29+
| SpartaCairoFreetypeSynthesize CAIRO_FT_SYNTHESIZE_OBLIQUE value ].
30+
2831
aCairoFontFace synthesize: aSynthesize.
2932
aCairoFontFace freetypeFont: aFreetypeFont.
30-
33+
3134
^ aCairoFontFace
3235
]
3336

0 commit comments

Comments
 (0)
0