Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EmbeddedFreeTypeFontFontDescription should be EmbeddedFreeTypeFontDes…
…cription Fix #7587 - second attempt
- Loading branch information
Showing
5 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
src/EmbeddedFreeType/EmbeddedFreeTypeFontDescription.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Class { | ||
#name : #EmbeddedFreeTypeFontDescription, | ||
#superclass : #Object, | ||
#category : #'EmbeddedFreeType-Base' | ||
} | ||
|
||
{ #category : #testing } | ||
EmbeddedFreeTypeFontDescription class >> canBeInstalled [ | ||
"By default, font can be installed anywhere" | ||
^ true | ||
|
||
] | ||
|
||
{ #category : #accessing } | ||
EmbeddedFreeTypeFontDescription class >> fontContents [ | ||
self subclassResponsibility | ||
|
||
] | ||
|
||
{ #category : #accessing } | ||
EmbeddedFreeTypeFontDescription class >> installAllFontsIn: provider [ | ||
self allSubclasses do: [ :each | each installFontsIn: provider ] | ||
] | ||
|
||
{ #category : #accessing } | ||
EmbeddedFreeTypeFontDescription class >> installFontsIn: provider [ | ||
self canBeInstalled ifFalse: [ ^ self ]. | ||
provider | ||
addFromFileContents: self fontContents | ||
baseName: self originalFileName | ||
] | ||
|
||
{ #category : #testing } | ||
EmbeddedFreeTypeFontDescription class >> isAbstract [ | ||
^self name = #EmbeddedFreeTypeFontFontDescription | ||
|
||
] | ||
|
||
{ #category : #accessing } | ||
EmbeddedFreeTypeFontDescription class >> originalFileName [ | ||
self subclassResponsibility | ||
|
||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters