Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font for linux machine? #3

Open
markbneal opened this issue Apr 12, 2022 · 2 comments
Open

Font for linux machine? #3

markbneal opened this issue Apr 12, 2022 · 2 comments

Comments

@markbneal
Copy link

markbneal commented Apr 12, 2022

On a linux machine, comment out this:`

#windowsFonts(georg = windowsFont('Georgia'))`

modify make_map.r: by commenting out text...:

     theme(#text = element_text(family = "georg"),

And then make sure (in mainr.r) you source your local make_map.r:

# map_url <- "https://raw.githubusercontent.com/milos-agathon/map-rivers-with-sf-and-ggplot2-in-R/main/R/make_map.r"
# source(map_url) # load script
source("R/make_map.r")
@milos-agathon
Copy link
Owner

These are all great points! Unfortunately, I work on Windows and always gloss over the fact that some things won't work on Linux.

@markbneal
Copy link
Author

For spatial work as it gets larger, I think more people will be using cloud machine infrastructure, and mostly they will be Linux based. That's the direction I'm heading, though haven't investigated the fonts piece.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants