wch / extrafont

Tools for using fonts in R graphics
315 stars 48 forks source link

Cambria regular not being imported #60

Open vasselai opened 5 years ago

vasselai commented 5 years ago

When using the package, almost everything works fine. An exception is the following: I cannot use the Cambria regular font because it never gets imported. It seems to be an odd bug, because it does detect and import the Cambria Bold, Cambria Italic and Cambria Bold Italic fonts, just not the regular.

I keep trying to call "font_import()", and getting:

C:\Windows\Fonts\cambriab.ttf : Cambria-Bold already registered in fonts database. Skipping.
C:\Windows\Fonts\cambriai.ttf : Cambria-Italic already registered in fonts database. Skipping.
C:\Windows\Fonts\cambriaz.ttf : Cambria-BoldItalic already registered in fonts database. Skipping.

No mention, whatsoever, to 'cambria.ttf'. And when I navigate with Windows Explorer to "C:\Windows\Fonts\", it is there.