manual/text/fallback_fonts.rb in prawn-2.0.1 vs manual/text/fallback_fonts.rb in prawn-2.0.2
- old
+ new
@@ -14,11 +14,11 @@
:normal => { :file => file, :font => "Kai" }
}
file = "#{Prawn::DATADIR}/fonts/Panic+Sans.dfont"
font_families["Panic Sans"] = {
- :normal => { :file => file, :font => "PanicSans" },
+ :normal => { :file => file, :font => "PanicSans" }
}
font("Panic Sans") do
text("When fallback fonts are included, each glyph will be rendered " +
"using the first font that includes the glyph, starting with the " +
@@ -29,9 +29,9 @@
:fallback_fonts => ["Times-Roman", "Kai"])
end
move_down 20
formatted_text([ { :text => "Fallback fonts can even override" },
- { :text => "fragment fonts (你好)", :font => "Times-Roman" },
+ { :text => "fragment fonts (你好)", :font => "Times-Roman" }
],
:fallback_fonts => ["Times-Roman", "Kai"])
end