summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2021-01-20 23:58:20 -0700
committerDan Allen <dan.j.allen@gmail.com>2021-01-21 05:02:44 -0700
commitee2ab273ef7bdab83318d9a9c23cfe2c472cf90d (patch)
treee356ccef08d6eb323c1e2e3b41f0509f957922af
parent357d2f174727f8987e17d9a3b00ccc4c9c016440 (diff)
only patch FontMetricCache if it does not include the :size member
-rw-r--r--lib/asciidoctor/pdf/ext/prawn/font_metric_cache.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/pdf/ext/prawn/font_metric_cache.rb b/lib/asciidoctor/pdf/ext/prawn/font_metric_cache.rb
index d320d8a7..a7256f03 100644
--- a/lib/asciidoctor/pdf/ext/prawn/font_metric_cache.rb
+++ b/lib/asciidoctor/pdf/ext/prawn/font_metric_cache.rb
@@ -6,4 +6,4 @@ class Prawn::FontMetricCache::CacheEntry
font = font.hash
super
end
-end
+end if Prawn::FontMetricCache::CacheEntry.members == [:font, :options, :string]