[DRE-commits] [ruby-prawn] 05/10: refresh 0400_use_system_fonts.patch
Cédric Boutillier
boutil at alioth.debian.org
Thu Aug 8 22:46:11 UTC 2013
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-prawn.
commit 9099b6b24d9fe6182a571592125db4e92fa562dd
Author: Cédric Boutillier <boutil at debian.org>
Date: Fri Aug 9 00:13:14 2013 +0200
refresh 0400_use_system_fonts.patch
---
debian/patches/0400_use_system_fonts.patch | 26 +++++++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/debian/patches/0400_use_system_fonts.patch b/debian/patches/0400_use_system_fonts.patch
index d8a80c2..2728f1e 100644
--- a/debian/patches/0400_use_system_fonts.patch
+++ b/debian/patches/0400_use_system_fonts.patch
@@ -3,7 +3,7 @@ Description: use system fonts when possible
available in Debian. These copies have been removed from the Debian source
package, and system fonts are used instead.
Author: Cédric Boutillier <boutil at debian.org>
-Last-Update: 2013-06-22
+Last-Update: 2013-08-08
--- a/spec/line_wrap_spec.rb
+++ b/spec/line_wrap_spec.rb
@@ -163,6 +163,30 @@ Last-Update: 2013-06-22
@pdf.width_of("\nhello world\n").should ==
@pdf.width_of("hello world")
+@@ -114,18 +114,18 @@
+ end
+
+ it "should accept Pathname objects for font files" do
+- file = Pathname.new( "#{Prawn::DATADIR}/fonts/Chalkboard.ttf" )
+- @pdf.font_families["Chalkboard"] = {
++ file = Pathname.new( "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf" )
++ @pdf.font_families["DejaVuSans"] = {
+ :normal => file
+ }
+
+- @pdf.font "Chalkboard"
+- @pdf.text "In Chalkboard"
++ @pdf.font "DejaVuSans"
++ @pdf.text "In DejaVuSans"
+
+ text = PDF::Inspector::Text.analyze(@pdf.render)
+ name = text.font_settings.map { |e| e[:name] }.first.to_s
+ name = name.sub(/\w+\+/, "subset+")
+- name.should == "subset+Chalkboard"
++ name.should == "subset+DejaVuSans"
+ end
+ end
+
@@ -269,15 +269,19 @@
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-prawn.git
More information about the Pkg-ruby-extras-commits
mailing list