lib/prawn/svg/font_registry.rb in prawn-svg-0.25.1 vs lib/prawn/svg/font_registry.rb in prawn-svg-0.25.2
- old
+ new
@@ -1,10 +1,11 @@
class Prawn::SVG::FontRegistry
DEFAULT_FONT_PATHS = [
"/Library/Fonts",
"/System/Library/Fonts",
"#{ENV["HOME"]}/Library/Fonts",
- "/usr/share/fonts/truetype"
+ "/usr/share/fonts/truetype",
+ "/mnt/c/Windows/Fonts", # Bash on Ubuntu on Windows
]
@font_path = DEFAULT_FONT_PATHS.select { |path| Dir.exist?(path) }
def initialize(font_families)