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 -