<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -39,6 +39,25 @@ class FontObserver
   end
 end
 
+describe &quot;Font Metrics&quot; do
+
+  it &quot;should default to Helvetica if no font is specified&quot; do
+    @pdf = Prawn::Document.new
+    @pdf.font_metrics.should == Prawn::Font::Metrics[&quot;Helvetica&quot;]
+  end
+
+  it &quot;should use the currently set font for font_metrics&quot; do
+    @pdf = Prawn::Document.new
+    @pdf.font &quot;Courier&quot;
+    @pdf.font_metrics.should == Prawn::Font::Metrics[&quot;Courier&quot;]
+   
+    comicsans = &quot;#{Prawn::BASEDIR}/data/fonts/comicsans.ttf&quot;
+    @pdf.font(comicsans)
+    @pdf.font_metrics.should == Prawn::Font::Metrics[comicsans]
+  end
+
+end
+
 describe &quot;when drawing text&quot; do
    
    before(:each) { create_pdf } </diff>
      <filename>spec/text_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9d0b188ccf14a1c9afe55ef9fe36125376f8bdcf</id>
    </parent>
  </parents>
  <author>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </author>
  <url>http://github.com/sandal/prawn/commit/0f9eef241c3343afbf7937d5bc47f1cdbfb3c3e1</url>
  <id>0f9eef241c3343afbf7937d5bc47f1cdbfb3c3e1</id>
  <committed-date>2008-06-20T14:01:56-07:00</committed-date>
  <authored-date>2008-06-20T14:01:56-07:00</authored-date>
  <message>Add spec for font_metrics defaults.  This should cover all changed behaviour as a result of the new table code [#30 state:resolved]</message>
  <tree>bbb825135b9a6691f507cc23678e1c091bec071b</tree>
  <committer>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </committer>
</commit>
