Nice! :)
http://forum.world.st/file/n4813138/font-importer.png
Two questions:
1. Who does the rendering? Looks kind of irregular... See attachment. 2. Can we move it to the "Tools" package?
Best, Marcel
-- View this message in context: http://forum.world.st/The-Trunk-Morphic-topa-784-mcz-tp4813130p4813138.html Sent from the Squeak - Dev mailing list archive at Nabble.com.
What is the difference between "import" and "install"?
Best, Marcel
-- View this message in context: http://forum.world.st/The-Trunk-Morphic-topa-784-mcz-tp4813130p4813139.html Sent from the Squeak - Dev mailing list archive at Nabble.com.
Would it be difficult to let the user decide/override which font sizes to import?
Best, Marcel
-- View this message in context: http://forum.world.st/The-Trunk-Morphic-topa-784-mcz-tp4813130p4813141.html Sent from the Squeak - Dev mailing list archive at Nabble.com.
Could we apply a short but smart algorithm to the glyphs to increase contrast? As part of the import process. Should not be that difficult.
Best, Marcel
-- View this message in context: http://forum.world.st/The-Trunk-Morphic-topa-784-mcz-tp4813130p4813144.html Sent from the Squeak - Dev mailing list archive at Nabble.com.
On 19.03.2015, at 11:54, Marcel Taeumel marcel.taeumel@student.hpi.uni-potsdam.de wrote:
Would it be difficult to let the user decide/override which font sizes to import?
Yeno :D To quote TTCFont class >> #pointSizes
"The default sizes that are created when a TextStyle is created. You can add new sizes by the new-size feature." ^ #(9 12 15 24 36).
So, it is possible to change the point size of a TTCFont internally and TextStyles also support this somewhat, but actually _adding_ a point size takes code; after import/install you could do
((TextStyle named: 'Gill Sans') addNewFontSize: 8)
but there's no UI.
Best, Marcel
Hmm... "StrikeFont class>>#familyNamed:pointSize:" could dynamically add the missing size if it is possible instead of falling back to another font. Does this make sense?
Best, Marcel
-- View this message in context: http://forum.world.st/The-Trunk-Morphic-topa-784-mcz-tp4813130p4813170.html Sent from the Squeak - Dev mailing list archive at Nabble.com.
Why should I use TextStyle if I want to program with or access fonts? I always use StrikeFont... :-)
-- View this message in context: http://forum.world.st/The-Trunk-Morphic-topa-784-mcz-tp4813130p4813171.html Sent from the Squeak - Dev mailing list archive at Nabble.com.
On 19.03.2015, at 13:35, Marcel Taeumel marcel.taeumel@student.hpi.uni-potsdam.de wrote:
Why should I use TextStyle if I want to program with or access fonts? I always use StrikeFont... :-)
Because that is what the user sees when she hits ctrl-K for the font menu…
I used this TextStyle thingy because it is there and I don't need no additional registry again :D
Best -Tobias
On 19.03.2015, at 13:34, Marcel Taeumel marcel.taeumel@student.hpi.uni-potsdam.de wrote:
Hmm... "StrikeFont class>>#familyNamed:pointSize:" could dynamically add the missing size if it is possible instead of falling back to another font. Does this make sense?
I don't understand? TTFonts have nothing to do with StrikeFonts :D
Best, Marcel
On 19.03.2015, at 13:06, Tobias Pape Das.Linux@gmx.de wrote:
On 19.03.2015, at 11:54, Marcel Taeumel marcel.taeumel@student.hpi.uni-potsdam.de wrote:
Would it be difficult to let the user decide/override which font sizes to import?
Yeno :D To quote TTCFont class >> #pointSizes
"The default sizes that are created when a TextStyle is created. You can add new sizes by the new-size feature." ^ #(9 12 15 24 36).
So, it is possible to change the point size of a TTCFont internally and TextStyles also support this somewhat, but actually _adding_ a point size takes code; after import/install you could do
((TextStyle named: 'Gill Sans') addNewFontSize: 8)
but there's no UI.
There used to be UI. We lost it when the font menu was replaced with the font dialog.
- Bert -
On 19.03.2015, at 14:58, Bert Freudenberg bert@freudenbergs.de wrote:
On 19.03.2015, at 13:06, Tobias Pape Das.Linux@gmx.de wrote:
On 19.03.2015, at 11:54, Marcel Taeumel marcel.taeumel@student.hpi.uni-potsdam.de wrote:
Would it be difficult to let the user decide/override which font sizes to import?
Yeno :D To quote TTCFont class >> #pointSizes
"The default sizes that are created when a TextStyle is created. You can add new sizes by the new-size feature." ^ #(9 12 15 24 36).
So, it is possible to change the point size of a TTCFont internally and TextStyles also support this somewhat, but actually _adding_ a point size takes code; after import/install you could do
((TextStyle named: 'Gill Sans') addNewFontSize: 8)
but there's no UI.
There used to be UI. We lost it when the font menu was replaced with the font dialog.
- Bert -
Adding a note to this very welcome tool added 2 years ago:
The FontImporterTool (=class name, available through the 'Apps' menu) gives me the result which is attached on Ubuntu 14.04.
Direct fix for Ubuntu -----------------------------
The FontImporterTool
uses
TTFileDescription fontPathsDo: aBlock
to find out where to look for TrueType fonts.
For the case of Ubuntu 14.04 this only works if I replace there
['unix'] -> [ | base | "Standard fonts are in /usr/share/fonts/*" base := '/usr/share/fonts'.
with
['unix'] -> [ | base | "Standard fonts are in /usr/share/fonts/*" base := '/usr/share/fonts/truetype'.
How could we fix this in a more general way?
--Hannes
On 3/19/15, Bert Freudenberg bert@freudenbergs.de wrote:
On 19.03.2015, at 14:58, Bert Freudenberg bert@freudenbergs.de wrote:
On 19.03.2015, at 13:06, Tobias Pape Das.Linux@gmx.de wrote:
On 19.03.2015, at 11:54, Marcel Taeumel marcel.taeumel@student.hpi.uni-potsdam.de wrote:
Would it be difficult to let the user decide/override which font sizes to import?
Yeno :D To quote TTCFont class >> #pointSizes
"The default sizes that are created when a TextStyle is created. You can add new sizes by the new-size feature." ^ #(9 12 15 24 36).
So, it is possible to change the point size of a TTCFont internally and TextStyles also support this somewhat, but actually _adding_ a point size takes code; after import/install you could do
((TextStyle named: 'Gill Sans') addNewFontSize: 8)
but there's no UI.
There used to be UI. We lost it when the font menu was replaced with the font dialog.
- Bert -
And here a summary of the discussion in this thread so far.
Main issue is 'font sizes'. The FontImporterTool just generates a few text styles with particular font sizes and I do not easily know where these are defined.
Importing vs Installing ------------------------
Import embeds the font data in the image, install creates a "reference" font to the font file on disk
Font sizes -----------
Marcel asked:
Would it be difficult to let the user decide/override which font sizes to import?
Answer of Tobias:
To quote TTCFont class >> #pointSizes
"The default sizes that are created when a TextStyle is created. You can add new sizes by the new-size feature." ^ #(9 12 15 24 36).
So, it is possible to change the point size of a TTCFont internally and TextStyles also support this somewhat, but actually _adding_ a point size takes code; after import/install you could do
((TextStyle named: 'Gill Sans') addNewFontSize: 8)
but there's no UI.
Using TextStyles ----------------
Why should I use TextStyle if I want to program with or access fonts? I always use StrikeFont... :-)
Because that is what the user sees when she hits ctrl-K for the font menu…
I used this TextStyle thingy because it is there and I don't need no additional registry again :D
On 4/10/17, H. Hirzel hannes.hirzel@gmail.com wrote:
Adding a note to this very welcome tool added 2 years ago:
The FontImporterTool (=class name, available through the 'Apps' menu) gives me the result which is attached on Ubuntu 14.04.
Direct fix for Ubuntu
The FontImporterTool
uses
TTFileDescription fontPathsDo: aBlock
to find out where to look for TrueType fonts.
For the case of Ubuntu 14.04 this only works if I replace there
['unix'] -> [ | base | "Standard fonts are in /usr/share/fonts/*" base := '/usr/share/fonts'.
with
['unix'] -> [ | base | "Standard fonts are in /usr/share/fonts/*" base := '/usr/share/fonts/truetype'.
How could we fix this in a more general way?
--Hannes
On 3/19/15, Bert Freudenberg bert@freudenbergs.de wrote:
On 19.03.2015, at 14:58, Bert Freudenberg bert@freudenbergs.de wrote:
On 19.03.2015, at 13:06, Tobias Pape Das.Linux@gmx.de wrote:
On 19.03.2015, at 11:54, Marcel Taeumel marcel.taeumel@student.hpi.uni-potsdam.de wrote:
Would it be difficult to let the user decide/override which font sizes to import?
Yeno :D To quote TTCFont class >> #pointSizes
"The default sizes that are created when a TextStyle is created. You can add new sizes by the new-size feature." ^ #(9 12 15 24 36).
So, it is possible to change the point size of a TTCFont internally and TextStyles also support this somewhat, but actually _adding_ a point size takes code; after import/install you could do
((TextStyle named: 'Gill Sans') addNewFontSize: 8)
but there's no UI.
There used to be UI. We lost it when the font menu was replaced with the font dialog.
- Bert -
On 19.03.2015, at 11:50, Marcel Taeumel marcel.taeumel@student.hpi.uni-potsdam.de wrote:
What is the difference between "import" and "install"?
Import embeds the font data in the image, install creates a "reference" font to the font file on disk
Best, Marcel
Hey,
On 19.03.2015, at 11:49, Marcel Taeumel marcel.taeumel@student.hpi.uni-potsdam.de wrote:
Nice! :)
http://forum.world.st/file/n4813138/font-importer.png
Two questions:
- Who does the rendering? Looks kind of irregular... See attachment.
Balloon. A Balloon canvas renders the bezier curves onto a Form for each glyph.
- Can we move it to the "Tools" package?
Probably. I just put it next to the FontChooserTool, I modeled the importer after that.
Best, Marcel
squeak-dev@lists.squeakfoundation.org