thinreports-generator
thinreports-generator copied to clipboard
Custom font
Introduction
It has some different implementations from the official frozen specification thinreports/thinreports#5.
Status
- [x] Implementation
- [x] Manual test
- [ ] Some code refactoring
- [ ] Spec
Feature and Specification
See https://github.com/thinreports/thinreports-editor/pull/68
Hey @hidakatsuya - is there any ETA on this?
I used the fallback fonts to get around Prawn::Encoding::UndefinedConversionError
but they failed to activate given the font_family
setting on the text boxes inside the tlf
file.
To get around it, I had to replace Helvetica
with Custom-fallback-font0
to allow 'smart quotes' and other UTF-8 items in generated PDFs (so as to force ttf
files).
If there is some other way to get this working, that'd be great.
@timeimp Sorry for the delay in getting back to you. Also, thank you for commenting.
Unfortunately, we have not yet decided on an ETA for this feature, and we need to discuss the specification for it as well.
In addition, the specification is being discussed in https://github.com/thinreports/thinreports/issues/5 (in japanese).
@hidakatsuya No worries (and thanks for your response!).
If you need any help or movement on the spec front, I'm definitely glad to give input on thinreports/thinreports#5. Will set some time aside over the next month to add my 2c on this.
As I see it, being able to visually see the different fonts on board would be a massive plus for Thinreports.
That said, the spec definitely needs careful consideration with all the ways one might use fonts and the implications for rendering on local systems (yay!).
Thank you again!