Folks,
I run R on a early 2009 MacBook Pro running Mountain Lion.
I have a bunch of fonts in my user Library one of which is Garamond.
I have tried the ttf_import function to no avail. I played with this for a
couple of hours at least and I have gotten nowhere.
Here is a bit of one of my sessions (note that I used file.choose to get down to
the Font level)
> require(extrafont)
Loading required package: extrafont
Registering fonts with R
Warning messages:
1: In loadfonts("pdf", quiet = TRUE) :
More than one version of regular/bold/italic found for Apple Braille. Skipping
setup for this font.
2: In loadfonts("pdf", quiet = TRUE) :
No regular (non-bold, non-italic) version of Brush Script MT. Skipping setup
for this font.
3: In loadfonts("postscript", quiet = TRUE) :
More than one version of regular/bold/italic found for Apple Braille. Skipping
setup for this font.
4: In loadfonts("postscript", quiet = TRUE) :
No regular (non-bold, non-italic) version of Brush Script MT. Skipping setup
for this font.
> fonts()
[1] ".Keyboard" "Andale Mono"
"Apple Braille" "AppleMyungjo"
[5] "Arial Black" "Arial"
"Arial Narrow" "Arial Rounded MT Bold"
[9] "Arial Unicode MS" "Batang"
"Brush Script MT" "Calibri"
[13] "Cambria" "Candara"
"Comic Sans MS" "Consolas"
[17] "Constantia" "Corbel"
"Courier New" "Georgia"
[21] "Gulim" "Humor Sans"
"Impact" "Jazz"
[25] "JazzCord" "JazzPerc"
"JazzText" "JazzTextExtended"
[29] "Khmer Sangam MN" "Krini"
"Krinitsky" "Lao Sangam MN"
[33] "Microsoft Sans Serif" "MS Gothic"
"MS Mincho" "MS PGothic"
[37] "MS PMincho" "MusicalSymbols"
"Myanmar Sangam MN" "PMingLiU"
[41] "SimSun" "Sinfonia"
"Tahoma" "Times New Roman"
[45] "Trebuchet MS" "Verdana"
"Webdings" "Wingdings"
[49] "Wingdings 2" "Wingdings 3"
> ttf_import(file.choose())
Scanning ttf files in /Users/kw/Library/Fonts/Garamond ...
Extracting .afm files from .ttf files...
Error in data.frame(fontfile = ttfiles, FontName = "",
stringsAsFactors = FALSE) :
arguments imply differing number of rows: 0, 1
Here is what Font Book has to say about the font:
Garamond
Garamond
PostScript name Garamond
Full name Garamond
Family Garamond
Style Regular
Kind TrueType
Language Afrikaans, Albanian, Basque, Cornish, Danish, Dutch, English, Faroese,
French, Galician, German, Icelandic, Indonesian, Irish, Italian, Malay, Manx,
Norwegian Bokmål, Norwegian Nynorsk, Oromo, Portuguese, Somali, Spanish,
Swahili, Swedish, Swiss German, Zulu
Script Latin
Version Version 2.35
Location /Users/kw/Library/Fonts/Garamond
Unique name Monotype - Garamond Regular
Manufacturer Monotype Typography, Inc.
Designer Claude Garamond
Copyright Digitized data copyright Monotype Typography, Ltd 1991-1995. All
rights reserved. Monotype Garamond® is a trademark of Monotype Typography, Ltd
which may be registered in certain jurisdictions.
Trademark Monotype Garamond® is a trademark of Monotype Typography, Ltd which
may be registered in certain jurisdictions.
Description Monotype Drawing Office 1922. This typeface is based on roman types
cut by Jean Jannon in 1615. Jannon followed the designs of Claude Garamond which
had been cut in the previous century. Garamond's types were, in turn, based
on those used by Aldus Manutius in 1495 and cut by Francesco Griffo. The italic
is based on types cut in France circa 1557 by Robert Granjon. Garamond is a
beautiful typeface with an air of informality which looks good in a wide range
of applications. It works particularly well in books and lengthy text settings.
License NOTIFICATION OF LICENSE AGREEMENT
This typeface is the property of Monotype Typography and its use by you is
covered under the terms of a license agreement. You have obtained this typeface
software either directly from Monotype or together with software distributed by
one of Monotype’s licensees.
This software is a valuable asset of Monotype. Unless you have entered into a
specific license agreement granting you additional rights, your use of this
software is limited to your workstation for your own publishing use. You may not
copy or distribute this software.
If you have any question concerning your rights you should review the license
agreement you received with the software or contact Monotype for a copy of the
license agreement.
Monotype can be contacted at:
USA 847-718-0400 UK 44(0)1737 765959
For license terms and usage rights, please visit our web site at
www.monotype.com/html/type/license.html
Lizenzbedingungen und Nutzungsrechte finden Sie auf unserer Webseite
www.monotype.com/html/type/license.html
Pour plus d'informations concernant les droits d'utilisation et les
questions contractuelles, veuillez consultez notre site
www.monotype.com/html/type/license.html
Para obtener información acerca de los términos de licencia y los derechos de
uso, visite nuestro sitio en el Web en www.monotype.com/html/type/license.html
Per le condizioni contrattuali ed i diritti d'uso, visitate il nostro sito
web all'indirizzo www.monotype.com/html/type/license.html
Enabled Yes
Duplicate No
Copy protected No
Embeddable Yes
Glyph count 249
Any leads would be greatly appreciated.
Thanks,
KW
--
[[alternative HTML version deleted]]