manual/text/fallback_fonts.rb in prawn-1.0.0 vs manual/text/fallback_fonts.rb in prawn-1.1.0
- old
+ new
@@ -6,20 +6,20 @@
#
require File.expand_path(File.join(File.dirname(__FILE__),
%w[.. example_helper]))
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
-Prawn::Example.generate(filename) do
+Prawn::ManualBuilder::Example.generate(filename) do
file = "#{Prawn::DATADIR}/fonts/gkai00mp.ttf"
font_families["Kai"] = {
:normal => { :file => file, :font => "Kai" }
}
-
+
file = "#{Prawn::DATADIR}/fonts/Panic+Sans.dfont"
font_families["Panic Sans"] = {
: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 " +
"current font and then moving through the fallback fonts from left " +
"to right." +