[GRASS-dev] font path question for Linux and Windows
William Kyngesburye
woklist at kyngchaos.com
Wed May 2 09:58:52 EDT 2007
Only works on Tiger+ (10.4+). Panther doesn't have Spotlight, which
is what mdfind is from.
On May 2, 2007, at 5:48 AM, Agustin Diez Castillo wrote:
> mdfind 'kMDItemContentType = "*truetype*"'
> Finds all the truetype fonts on my Computer, even those inside an
> Application folder or on devices attached to it.
> **************************************
> /System/Library/Fonts/Apple LiGothic Medium.dfont
> /System/Library/Fonts/AppleGothic.dfont
> /System/Library/Fonts/Courier.dfont
> /System/Library/Fonts/Geneva.dfont
> /System/Library/Fonts/Helvetica.dfont
> /System/Library/Fonts/Keyboard.dfont
> /System/Library/Fonts/LastResort.dfont
> /System/Library/Fonts/LucidaGrande.dfont
> /System/Library/Fonts/Monaco.dfont
> /System/Library/Fonts/Symbol.dfont
> /System/Library/Fonts/Times.dfont
> /System/Library/Fonts/ZapfDingbats.dfont
> /System/Library/Fonts/儷黑 Pro.ttf
> /System/Library/Fonts/华文细黑.ttf
> /System/Library/Fonts/华文黑体.ttf
> /Library/Fonts/tt9830z_.ttf
> /Library/Fonts/AmericanTypewriter.dfont
> /Library/Fonts/Apple Chancery.dfont
> /Library/Fonts/Apple Symbols.ttf
> /Library/Fonts/Baskerville.dfont
> /Library/Fonts/BigCaslon.dfont
> /Library/Fonts/Chalkboard.ttf
> /Library/Fonts/ChalkboardBold.ttf
> /Library/Fonts/Cochin.dfont
> /Library/Fonts/Copperplate.dfont
> /Library/Fonts/Didot.dfont
> /Library/Fonts/Futura.dfont
> /Library/Fonts/GillSans.dfont
> /Library/Fonts/HelveticaNeue.dfont
> /Library/Fonts/Herculanum.dfont
> /Library/Fonts/Hoefler Text.dfont
> /Library/Fonts/MarkerFelt.dfont
> /Library/Fonts/Apple LiSung Light.dfont
> /Library/Fonts/BiauKai.dfont
> /Library/Fonts/NISC18030.ttf
> /Library/Fonts/儷宋 Pro.ttf
> /Library/Fonts/华文仿宋.ttf
> /Library/Fonts/华文宋体.ttf
> /Library/Fonts/华文楷体.ttf
> /Library/Fonts/#Gungseouche.dfont
> /Library/Fonts/#HeadlineA.dfont
> /Library/Fonts/#PCmyoungjo.dfont
> /Library/Fonts/#Pilgiche.dfont
> /Library/Fonts/AppleMyungjo.dfont
> /Library/Fonts/AlBayan.ttf
> /Library/Fonts/AlBayanBold.ttf
> /Library/Fonts/ArialHB.ttf
> /Library/Fonts/ArialHBBold.ttf
> /Library/Fonts/Ayuthaya.ttf
> /Library/Fonts/Baghdad.ttf
> /Library/Fonts/CharcoalCY.dfont
> /Library/Fonts/Corsiva.ttf
> /Library/Fonts/CorsivaBold.ttf
> /Library/Fonts/DecoTypeNaskh.ttf
> /Library/Fonts/DevanagariMT.ttf
> /Library/Fonts/DevanagariMTBold.ttf
> /Library/Fonts/EuphemiaCASBold.ttf
> /Library/Fonts/EuphemiaCASItalic.ttf
> /Library/Fonts/EuphemiaCASRegular.ttf
> /Library/Fonts/GenevaCY.dfont
> /Library/Fonts/GujaratiMT.ttf
> /Library/Fonts/GujaratiMTBold.ttf
> /Library/Fonts/Gurmukhi.ttf
> /Library/Fonts/HelveticaCY.dfont
> /Library/Fonts/InaiMathi.ttf
> /Library/Fonts/Krungthep.ttf
> /Library/Fonts/Optima.dfont
> /Library/Fonts/Papyrus.dfont
> /Library/Fonts/Skia.dfont
> /Library/Fonts/Zapfino.dfont
> /System/Library/Fonts/Geeza Pro Bold.ttf
> /System/Library/Fonts/Geeza Pro.ttf
> /System/Library/Fonts/Osaka.dfont
> /System/Library/Fonts/OsakaMono.dfont
> /Library/Fonts/Kai.dfont
> /System/Library/Fonts/Hei.dfont
> /Library/Fonts/KufiStandarGK.ttf
> /Library/Fonts/MshtakanBold.ttf
> /Library/Fonts/MshtakanBoldOblique.ttf
> /Library/Fonts/MshtakanOblique.ttf
> /Library/Fonts/MshtakanRegular.ttf
> /Library/Fonts/Nadeem.ttf
> /Library/Fonts/NewPeninimMT.ttf
> /Library/Fonts/NewPeninimMTBold.ttf
> /Library/Fonts/NewPeninimMTBoldInclined.ttf
> /Library/Fonts/NewPeninimMTInclined.ttf
> /Library/Fonts/PlantagenetCherokee.ttf
> /Library/Fonts/Raanana.ttf
> /Library/Fonts/RaananaBold.ttf
> /Library/Fonts/Sathu.ttf
> /Library/Fonts/Silom.ttf
> /Library/Fonts/Thonburi.ttf
> /Applications/rsi/idl_6.2/resource/fonts/tt/tt0003m_.ttf
> ....
> /Volumes/LaCieDisk/Users/Shared/cosas de Smigol/Library/Perl/5.8.1/
> darwin-thread-multi-2level/VRML/fonts/Amrigoi.ttf
> ...
> ***************************************
> + 1000 fonts
> and
> mdls /Library/Fonts/Silom.ttf, writes the metadata
> ***********************
> /Library/Fonts/Silom.ttf -------------
> kMDItemAttributeChangeDate = 2006-08-11 10:56:25 +0200
> kMDItemContentCreationDate = 2006-07-02 17:20:18 +0200
> kMDItemContentModificationDate = 2006-07-02 17:20:18 +0200
> kMDItemContentType = "public.truetype-ttf-font"
> kMDItemContentTypeTree = (
> "public.truetype-ttf-font",
> "public.truetype-font",
> "public.font",
> "public.data",
> "public.item"
> )
> kMDItemCopyright = "© 1992-2003 Apple Computer, Inc."
> kMDItemDisplayName = "Silom.ttf"
> kMDItemFonts = (Silom)
> kMDItemFSContentChangeDate = 2006-07-02 17:20:18 +0200
> kMDItemFSCreationDate = 2006-07-02 17:20:18 +0200
> kMDItemFSCreatorCode = 0
> kMDItemFSFinderFlags = 0
> kMDItemFSInvisible = 0
> kMDItemFSIsExtensionHidden = 0
> kMDItemFSLabel = 0
> kMDItemFSName = "Silom.ttf"
> kMDItemFSNodeCount = 0
> kMDItemFSOwnerGroupID = 80
> kMDItemFSOwnerUserID = 0
> kMDItemFSSize = 250996
> kMDItemFSTypeCode = 0
> kMDItemID = 227671
> kMDItemKind = "Windows TrueType font"
> kMDItemVersion = "10.4d5e1"
> ***************************
> On May 2, 2007, at 4:18 AM, Glynn Clements wrote:
>
>>
>> William Kyngesburye wrote:
>>
>>> I just had a chance to check OSX 10.3 (Panther) X11 - fontconfig is
>>> present. For OSX Panther, X11 is v1.0, before that (OSX 10.2 and
>>> below) it was a beta and is not available for download any more, as
>>> far as I can tell. I think the betas must be where fontconfig
>>> wasn't
>>> a part of Apple's X11 package (and I'm sure it wasn't at first).
>>>
>>> So, using fc-list on OSX, if it's available, for mkftcap is
>>> reasonable, for now.
>>
>> Is it possible to filter any non-TrueType fonts from the output? Or
>> are there not enough TrueType fonts to worry about?
>>
>> We can probably tolerate a few bogus entries in an auto-generated
>> freetypecap file; the user can always remove entries which don't
>> work.
>> However, on my system, "fc-list :outline file" generates 102 entries;
>> 51 are .ttf files and 51 are .pfa/.pfb files, which is too high a
>> signal-to-noise ratio.
>>
>> That doesn't matter on Linux, as I can just ignore anything which
>> doesn't have a .ttf extension. For OSX, we'll need to find some other
>> way unless the number of false positives in the original fc-list
>> output is low.
>>
>> --
>> Glynn Clements <glynn at gclements.plus.com>
>>
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at grass.itc.it
>> http://grass.itc.it/mailman/listinfo/grass-dev
>>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
"Time is an illusion - lunchtime doubly so."
- Ford Prefect
More information about the grass-dev
mailing list