Module: VivlioStarter::CLI::PreProcessCommands::SvgFontEmbedder
- Defined in:
- lib/vivlio_starter/cli/pre_process/svg_font_embedder.rb
Overview
生成 SVG へサブセットフォントを埋め込むユーティリティ
Constant Summary collapse
- DEFAULT_FONT =
'Zen Kaku Gothic New'
Class Method Summary collapse
-
.bundled_font_path(dir) ⇒ Object
同梱書体: Bold 字面があればそれ、無ければ辞書順で最初の 1 本。.
-
.characters_in(svg) ⇒ Array<String>
SVG の
に現れる字を重複なく集める。. -
.configured_heading_font ⇒ Object
book.yml の見出し書体名(未設定・プロジェクト外では同梱既定)。.
-
.font_face_style(chars, family:, font_path: nil) ⇒ String?
指定した字だけを含む @font-face の