-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add generic font-families for serif and sans-serif (#65)
Add generic font-families for serif and sans-serif
- Loading branch information
Showing
10 changed files
with
22,666 additions
and
9,823 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
defaultSVGTextStyle | ||
|
||
self installDefaultSVGTextStyle. | ||
^ self named: #OpenSans | ||
^ self named: #'sans-serif' |
5 changes: 3 additions & 2 deletions
5
packages/SVG-Morphic.package/TextStyle.extension/class/installDefaultSVGTextStyle.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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
*SVG-Morphic | ||
installDefaultSVGTextStyle | ||
|
||
(self actualTextStyles includesKey: #OpenSans) | ||
((self actualTextStyles includesKey: #serif) and: [self actualTextStyles includesKey: #'sans-serif']) | ||
ifTrue: [^ self]. | ||
|
||
TTCFont newTextStyleFromTTStream: (ReadStream on:(TextStyle openSansData base64Decoded asByteArray)) | ||
TTCFont newTextStyleFromTTStream: (ReadStream on:(TextStyle sansData base64Decoded asByteArray)). | ||
TTCFont newTextStyleFromTTStream: (ReadStream on:(TextStyle serifData base64Decoded asByteArray)) |
9,811 changes: 0 additions & 9,811 deletions
9,811
packages/SVG-Morphic.package/TextStyle.extension/class/openSansData.st
This file was deleted.
Oops, something went wrong.
2,406 changes: 2,406 additions & 0 deletions
2,406
packages/SVG-Morphic.package/TextStyle.extension/class/sansData.st
Large diffs are not rendered by default.
Oops, something went wrong.
20,246 changes: 20,246 additions & 0 deletions
20,246
packages/SVG-Morphic.package/TextStyle.extension/class/serifData.st
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 4 additions & 3 deletions
7
packages/SVG-Morphic.package/TextStyle.extension/methodProperties.json
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ | ||
"class" : { | ||
"defaultSVGFont" : "tw 5/31/2022 16:51", | ||
"defaultSVGTextStyle" : "tw 5/31/2022 16:51", | ||
"installDefaultSVGTextStyle" : "tw 5/31/2022 16:51", | ||
"openSansData" : "tw 5/31/2022 16:34" }, | ||
"defaultSVGTextStyle" : "AS 7/3/2022 21:31", | ||
"installDefaultSVGTextStyle" : "AS 7/3/2022 21:30", | ||
"sansData" : "AS 7/3/2022 21:30", | ||
"serifData" : "AS 7/3/2022 21:28" }, | ||
"instance" : { | ||
} } |
2 changes: 1 addition & 1 deletion
2
packages/Tests-SVG-Morphic.package/SVGTextMorphTests.class/instance/defaultFont.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
defaultFont | ||
defaultFont | ||
|
||
^ 'OpenSans' | ||
^ 'sans-serif' |
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