Skip to content

Commit

Permalink
refactor fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
tillwenke committed Aug 3, 2022
1 parent ca36f29 commit f6dab22
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ installDefaultSVGTextStyle

((self actualTextStyles includesKey: #serif) and: [self actualTextStyles includesKey: #'sans-serif'])
ifTrue: [^ self].

TTCFont newTextStyleFromTTStream: (ReadStream on:(TextStyle sansData base64Decoded asByteArray)).
TTCFont newTextStyleFromTTStream: (ReadStream on:(TextStyle serifData base64Decoded asByteArray))

self
installFontFrom: TextStyle sansData;
installFontFrom: TextStyle serifData.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*SVG-Morphic
installFontFrom: aBase64Font

TTCFont newTextStyleFromTTStream: (ReadStream on:(aBase64Font base64Decoded asByteArray)).
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*SVG-Morphic
sansData
"OpenSans encoded in base64"

^'AAEAAAASAQAABAAgR0RFRrTIsWAAAbBwAAABvkdQT1Opq6PmAAGyMAAAOXRHU1VCNybAFwAB
66QAAA8GT1MvMpZAgywAAAGoAAAAYFNUQVRe+0M1AAH6rAAAAF5jbWFwwzgfgAAAE9gAAAP2
Y3Z0ID0/LMgAACoEAAAA/GZwZ23iGZ5aAAAX0AAAD5RnYXNwABUAIwABsGAAAAAQZ2x5Zrc6
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*SVG-Morphic
serifData
"OpenSerif encoded in base64"

^'AAEAAAARAQAABAAQR0RFRpxLYw4AAz48AAAEskdQT1PQyXO4AANC8AAH++RHU1VC6P9qUAAL
PtQABW80T1MvMuW6tH8AAAGYAAAAYGNtYXCvBi8sAAAUHAAAGDRjdnQgBfgXewAAOxwAAABi
ZnBnbWIu/30AACxQAAAODGdhc3AAAAAQAAM+NAAAAAhnbHlmQtGclQAATagAAuuuaGVhZCbE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"class" : {
"defaultSVGFont" : "tw 5/31/2022 16:51",
"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" },
"installDefaultSVGTextStyle" : "tw 8/3/2022 13:59",
"installFontFrom:" : "tw 8/3/2022 13:58",
"sansData" : "tw 8/3/2022 13:56",
"serifData" : "tw 8/3/2022 13:56" },
"instance" : {
} }

0 comments on commit f6dab22

Please sign in to comment.