diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-04-18 02:56:18 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-18 02:56:18 -0600 |
| commit | 3f257f61aa3ee0f32e1d0679ed3c3d1090c59808 (patch) | |
| tree | f03abb0fd8b3c981d8da8fe49f16278b17df18c1 /spec/font_spec.rb | |
| parent | 82b185507808ffc4687800405b9b023c0acf59a9 (diff) | |
resolves #2010 bundle Noto Sans in addition to Noto Serif and add built-in theme sans-with-fallback-font (PR #2050)
Diffstat (limited to 'spec/font_spec.rb')
| -rw-r--r-- | spec/font_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/font_spec.rb b/spec/font_spec.rb index a4b0ffc1..33c2ab51 100644 --- a/spec/font_spec.rb +++ b/spec/font_spec.rb @@ -89,6 +89,18 @@ describe 'Asciidoctor::PDF::Converter - Font' do (expect to_file).to visually_match 'font-emoji.pdf' end + it 'should use sans base font when using sans theme with fallback font', visual: true do + to_file = to_pdf_file <<~'EOS', 'font-sans-emoji.pdf', attribute_overrides: { 'pdf-theme' => 'sans-with-fallback-font' } + == Lessons + + Don't 😢 over spilled 🍺. + + Asciidoctor is 👍. + EOS + + (expect to_file).to visually_match 'font-sans-emoji.pdf' + end + it 'should log warning once per character not found in any font when fallback font is used and verbose mode is enabled' do (expect do input_lines = [%(Bitcoin (\u20bf) is a cryptocurrency.), %(The currency is represented using the symbol \u20bf.)] |
