wch / extrafont

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

Added function to choose font from a list of available fonts #18

Closed jrnold closed 11 years ago

jrnold commented 12 years ago

This may be a useful function to have. Given a list of fonts, choose the first available installed font. This allows code to specify a preferred font, but have fall-backs if that one is not found. This function basically does the same thing that the CSS font-select property does.

wch commented 11 years ago

Looks good! I'll make some comments to make stylistic things fit in better with the rest of the project.

jrnold commented 11 years ago

sorry about that. All those stylistic changes have been incorporated in the new commits.