Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Replace message #name by #familyName
  • Loading branch information
hilaire committed Sep 24, 2019
1 parent ca737e5 commit 5d48753
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Text-Core/TextStyle.class.st
Expand Up @@ -373,7 +373,7 @@ TextStyle >> consolidate [
to: defFonts size
do:
[ :j |
(font name asUppercase copyWithout: $ ) = ((defFonts at: j) name asUppercase copyWithout: $ ) ifTrue:
(font familyName asUppercase copyWithout: $ ) = ((defFonts at: j) familyName asUppercase copyWithout: $ ) ifTrue:
[ fontArray
at: i
put: (defFonts at: j) ] ] ]
Expand Down Expand Up @@ -477,17 +477,17 @@ TextStyle >> fontIndexOfSize: desiredHeight [

{ #category : #accessing }
TextStyle >> fontNamed: fontName [ "TextStyle default fontNamed: 'TimesRoman10'"
^ fontArray detect: [:x | x name sameAs: fontName]
^ fontArray detect: [:x | x familyName sameAs: fontName]
]

{ #category : #accessing }
TextStyle >> fontNames [ "TextStyle default fontNames"
^ fontArray collect: [:x | x name]
^ fontArray collect: [:x | x familyName]
]

{ #category : #accessing }
TextStyle >> fontNamesAndSizes [ "TextStyle default fontNames"
^ fontArray collect: [:x | x name, ' ', x height printString]
^ fontArray collect: [:x | x familyName, ' ', x height printString]
]

{ #category : #'fonts and font indexes' }
Expand Down

0 comments on commit 5d48753

Please sign in to comment.