[R-SIG-Mac] No labels in plots - none of the solutions that I've come across have worked
J Greenbaum
jgb@um @end|ng |rom gm@||@com
Fri Jun 19 18:50:16 CEST 2020
Still struggling with this and can't figure out how to prevent my fonts
from disappearing. The workaround sometimes works, but sometimes I also
have to reboot and/or open Font Book. I can't determine exactly how to
consistently bring back my fonts, or why they are disappearing in the first
place. Any suggestions?
Bob, in response to your suggestion I installed the 'extrafont' package and
noticed a few warnings when I ran 'font_import' which may or may not be
relevant. Here are a few:
40: In grepl("^Weight", text) : input string 4 is invalid in this locale
41: In grepl("^FamilyName", text) : input string 4 is invalid in this locale
42: In grepl("^FontName", text) : input string 4 is invalid in this locale
43: In grepl("^FullName", text) : input string 4 is invalid in this locale
44: In grepl("^Weight", text) : input string 4 is invalid in this locale
45: In grepl("^FamilyName", text) : input string 4 is invalid in this locale
46: In grepl("^FontName", text) : input string 4 is invalid in this locale
47: In grepl("^FullName", text) : input string 4 is invalid in this locale
48: In grepl("^Weight", text) : input string 4 is invalid in this locale
49: In grepl("^FamilyName", text) : input string 4 is invalid in this locale
50: In grepl("^FontName", text) : input string 4 is invalid in this locale
And here is the output of the second command (cleaner formatting here:
https://pastebin.com/FCAYq7ym):
> subset(extrafont::fonttable(), grepl("Arial", FontName))
package afmfile
20 NA Arial Black.afm.gz
21 NA Arial Bold Italic.afm.gz
22 NA Arial Bold.afm.gz
23 NA Arial Italic.afm.gz
24 NA Arial.afm.gz
25 NA Arial Narrow.afm.gz
26 NA Arial Narrow Bold.afm.gz
27 NA Arial Narrow Bold Italic.afm.gz
28 NA Arial Narrow Italic.afm.gz
29 NA Arial Rounded Bold.afm.gz
30 NA Arial Unicode.afm.gz
fontfile
20 /System/Library/Fonts/Supplemental/Arial Black.ttf
21 /System/Library/Fonts/Supplemental/Arial Bold Italic.ttf
22 /System/Library/Fonts/Supplemental/Arial Bold.ttf
23 /System/Library/Fonts/Supplemental/Arial Italic.ttf
24 /System/Library/Fonts/Supplemental/Arial.ttf
25 /System/Library/Fonts/Supplemental/Arial Narrow.ttf
26 /System/Library/Fonts/Supplemental/Arial Narrow Bold.ttf
27 /System/Library/Fonts/Supplemental/Arial Narrow Bold Italic.ttf
28 /System/Library/Fonts/Supplemental/Arial Narrow Italic.ttf
29 /System/Library/Fonts/Supplemental/Arial Rounded Bold.ttf
30 /System/Library/Fonts/Supplemental/Arial Unicode.ttf
FullName FamilyName FontName
Bold
20 Arial Black Arial Black Arial-Black
FALSE
21 Arial Bold Italic Arial Arial-BoldItalicMT
TRUE
22 Arial Bold Arial Arial-BoldMT
TRUE
23 Arial Italic Arial Arial-ItalicMT
FALSE
24 Arial Arial ArialMT
FALSE
25 Arial Narrow Arial Narrow ArialNarrow
FALSE
26 Arial Narrow Bold Arial Narrow ArialNarrow-Bold
TRUE
27 Arial Narrow Bold Italic Arial Narrow ArialNarrow-BoldItalic
TRUE
28 Arial Narrow Italic Arial Narrow ArialNarrow-Italic
FALSE
29 Arial Rounded MT Bold Arial Rounded MT Bold ArialRoundedMTBold
FALSE
30 Arial Unicode MS Arial Unicode MS ArialUnicodeMS
FALSE
Italic Symbol afmsymfile
20 FALSE FALSE NA
21 TRUE FALSE NA
22 FALSE FALSE NA
23 TRUE FALSE NA
24 FALSE FALSE NA
25 FALSE FALSE NA
26 FALSE FALSE NA
27 TRUE FALSE NA
28 TRUE FALSE NA
29 FALSE FALSE NA
30 FALSE FALSE NA
Thanks again,
J
On Wed, Jun 17, 2020 at 8:40 AM J Greenbaum <jgbaum using gmail.com> wrote:
> Thanks for all of the feedback so far. I was able to get it to work
> temporarily by shutting down R, issuing 'sudo atsutil databases -remove',
> then starting R again. Strangely though, when I started R this morning the
> issue returned. Going through the same process brings back my fonts. Not
> sure why the fix lasts only temporarily, but happy to have this workaround
> for now...
>
> -J
>
> On Wed, Jun 17, 2020 at 5:52 AM Ken Beath <ken using kjbeath.com.au> wrote:
>
>> Will Restore Standard Fonts in Font Book do the same thing? Although if
>> reinstalling the system doesn’t work I’m not certain that anything should
>> work.
>>
>> Ken
>>
>> > On 17 Jun 2020, at 9:52 pm, Charlie D <charles.dimaggio using gmail.com>
>> wrote:
>> >
>> > Had the same issue. Check your mac font book utility. In my case Arial
>> was missing entirely. I was able to copy it from another mac I owned. Look
>> in HDD > library > fonts. Copy and paste it to same location on the machine
>> on which it’s missing. Hope that helps.
>> >
>> > Charlie DiMaggio
>> >
>> > Sent from my iPad
>> >
>> >> On Jun 17, 2020, at 2:00 AM, J Greenbaum <jgbaum using gmail.com> wrote:
>> >>
>> >> Hi all,
>> >>
>> >> I'm having what appears to be a relatively common problem in R under
>> macOS
>> >> in that text is not displaying in my plots. This used to work just
>> fine
>> >> for me, and still does on my other machines, except for my laptop (MBP
>> >> 16). The issue seemed to coincide with my upgrade to 10.15.5.
>> >>
>> >> When plotting, I get warnings similar to:
>> >>
>> >> no font could be found for family "Arial"
>> >>
>> >> I've tried every solution that I've come across on this issue including
>> >> finding duplicate fonts in 'Font Book', ensuring they all validate
>> >> properly, and I've even gone nuclear and completely reinstalled my OS!
>> >> I've tried installing the official R package as well as the homebrew R
>> >> package. I've also validated it's not my user account by reproducing
>> the
>> >> issue under different accounts. Nothing works.
>> >>
>> >> I would love some help in tracking this issue down. Any insight would
>> be
>> >> much appreciated.
>> >>
>> >> Thank you!
>> >>
>> >> -J
>> >>
>> >> [[alternative HTML version deleted]]
>> >>
>> >> _______________________________________________
>> >> R-SIG-Mac mailing list
>> >> R-SIG-Mac using r-project.org
>> >> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> >
>> > [[alternative HTML version deleted]]
>> >
>> > _______________________________________________
>> > R-SIG-Mac mailing list
>> > R-SIG-Mac using r-project.org
>> > https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>
>>
[[alternative HTML version deleted]]
More information about the R-SIG-Mac
mailing list