diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2020-02-24 23:58:00 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2020-02-24 23:58:00 -0700 |
| commit | ec2c502603418601a4a5059a2a85c9589f2c98da (patch) | |
| tree | 7b34148fa871d72b2ed6a1f26ae2e098a0bf6f47 /spec/font_spec.rb | |
| parent | 56ee0dd5be233787427b0c69b15534a7223d0a5a (diff) | |
verify that notdef from original font is used if glyph not found in fallback font
Diffstat (limited to 'spec/font_spec.rb')
| -rw-r--r-- | spec/font_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/font_spec.rb b/spec/font_spec.rb index c2cdc487..c7f1dc98 100644 --- a/spec/font_spec.rb +++ b/spec/font_spec.rb @@ -36,6 +36,12 @@ describe 'Asciidoctor::PDF::Converter - Font' do (expect to_file).to visually_match 'font-glyph-fallback-only.pdf' end + it 'should use notdef from original font of glyph not found in any fallback font', visual: true do + input = ?\u0278 * 10 + to_file = to_pdf_file input, 'font-notdef-glyph.pdf', analyze: true, attribute_overrides: { 'pdf-theme' => 'default-with-fallback-font' } + (expect to_file).to visually_match 'font-notdef-glyph.pdf' + end + it 'should include box drawing glyphs in bundled monospace font', visual: true do input_file = Pathname.new fixture_file 'box-drawing.adoc' to_file = to_pdf_file input_file, 'font-box-drawing.pdf' |
