NotoSans fonts for Prawn.
gem 'noto_prawn', github: 'fly1tkg/NotoPrawn'
pdf = Prawn::Document.new
# Set **Noto Sans Regular** fonts
pdf.set_noto_sans_regular
pdf.text 'こんにちは'
pdf.render_file 'path/to/output.pdf'
# You can use a bold font.
pdf.set_noto_sans_bold
# You can specify CJK Ideographs
# default is :sc
# :jp => Japanese
# :sc => Simplify Chinese
# :tc => Traditional Chinese
# :kr => Korean
pdf.set_noto_sans_regular :jp
- Fork it ( https://github.com/fly1tkg/NotoPrawn/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Do not hesitate to send Pull Requests.
- I want to add more sample texts for specs. (spec/texts/*.txt)
- Limited CJK Ideographs.
- JIS X 0208 for Japanese
- 通用规范汉字表 for Simplified Chinese
- CNS 11643 P1 and 常用國字標準字體表 for Traditional Chinese
- KS X 1001 for Korean
Copyright (c) 2016 fly1tkg
Released under the MIT license
Noto Sans
Google
SIL Open Font License, Version 1.1