Comments (4)
This module wasn't handling FontConfig failing to find a match. Added FreeMono.ttf as a resource and as a fallback font.
Fixed in latest build http://sparrowhub.io:2222/report/444
from pdf-font-loader-raku.
output from running tests form the shell:
alpine@ip-172-31-76-44:~/git/PDF-Font-Loader-raku$ uname -a
Linux ip-172-31-76-44 5.15.5-0-virt #1-Alpine SMP Fri, 26 Nov 2021 11:51:30 +0000 aarch64 Linux
alpine@ip-172-31-76-44:~/git/PDF-Font-Loader-raku$ prove6 -I.
t/cmap-fixed.t ............... ok
t/cmap-utf16.t ............... ok
t/cmap-utf32.t ............... ok
t/cmap-utf8.t ................ ok
t/cmap-variable.t ............ ok
t/fontobj.t .................. ok
t/load-font.t ................ ok
t/pdf-text-align.t ........... ok
t/reuse-cid.t ................ ok
t/reuse-type1.t .............. ok
Type check failed in assignment to $match; expected FontConfig:D but got FontConfig (FontConfig) (perhaps Nil was assigned to a :D which had no default?)
in method find-font at /home/alpine/git/PDF-Font-Loader-raku/lib/PDF/Font/Loader.rakumod (PDF::Font::Loader) line 92
in method load-font at /home/alpine/git/PDF-Font-Loader-raku/lib/PDF/Font/Loader.rakumod (PDF::Font::Loader) line 52
in method load-font at /home/alpine/git/PDF-Font-Loader-raku/lib/PDF/Font/Loader.rakumod (PDF::Font::Loader) line 64
in block <unit> at t/reuse-unembedded.t line 14
t/reuse-unembedded.t ......... Dubious, test returned 255
All 2 subtests passed
t/subset.t ................... ok
t/threads.t .................. ok
t/type1-add-encoding.t ....... ok
t/type1-encoding.t ........... ok
t/type1-encoding_issue#12.t .. ok
t/type1-stream.t ............. ok
t/type1.t .................... ok
t/type3-basic.t ..............1/8Type check failed in assignment to $match; expected FontConfig:D but got FontConfig (FontConfig) (perhaps Nil was assigned to a :D which had no default?)
in method find-font at /home/alpine/git/PDF-Font-Loader-raku/lib/PDF/Font/Loader.rakumod (PDF::Font::Loader) line 92
in method load-font at /home/alpine/git/PDF-Font-Loader-raku/lib/PDF/Font/Loader.rakumod (PDF::Font::Loader) line 52
in method load-font at /home/alpine/git/PDF-Font-Loader-raku/lib/PDF/Font/Loader.rakumod (PDF::Font::Loader) line 64
in block <unit> at t/type3-basic.t line 19
# You planned 8 tests, but ran 1
t/type3-basic.t .............. Dubious, test returned 255
All 8 subtests passed
All tests successful.
Test Summary Report
-------------------
t/reuse-unembedded.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 2 tests but ran 0.
t/type3-basic.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 8 tests but ran 1.
Files=19, Tests=130, 190 wallclock secs
Result: FAILED
alpine@ip-172-31-76-44:~/git/PDF-Font-Loader-raku$
from pdf-font-loader-raku.
I guess this is the same as on SparkyCI, but with more verbose output …
from pdf-font-loader-raku.
Good!
from pdf-font-loader-raku.
Related Issues (20)
- Incorrect font construction HOT 1
- Metrics mismatch for core fonts HOT 1
- Freetype thread safety issues HOT 3
- Large distribution size. Overuse of DejaVuSans.ttf in test suite HOT 2
- /Identity-H + /ToUnicode decoding of ligatures
- Handle CID-keyed CFF fonts HOT 1
- HarfBuzz shaping support HOT 1
- Add a :kern attribute to 'find-font' for limiting font searches to fonts with kerning ability HOT 1
- Example is confusing for understanding the difference between finding and loading a font HOT 1
- What happens if 'find-font' finds multiple files? HOT 1
- Add an option to return a list of all font files meeting the search criteria. HOT 4
- If possible, for find-font, add named param to select: mono, serif, or sans HOT 2
- When using .print in PDF::Lite, $font.underline-thickness, $font.underline-position, and $font.height are needed HOT 2
- Is $font.height applied with $gfx.say for the resulting text position? HOT 5
- Investigate handling of OpenType collections (*.otc)
- Font failing to decode
- Handle custom ligatures in string decoding HOT 1
- SparrowCI test keeps failing in recently HOT 1
- Synopsis example should show setting font size HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdf-font-loader-raku.