Table of Contents - text2path-0.0.4 Documentation
Pages
-
README
- Text2Path
- load font from pre-built svg font file
- You can make svg font from .ttf or other formats with Batik tools
- Code below converts text to svg output that can be displayed in browsers:
- <?xml version=“1.0” standalone=“no”?>
- <!DOCTYPE svg PUBLIC “-//W3C//DTD SVG 1.1//EN” “www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd”>
- <svg xmlns=“www.w3.org/2000/svg” version=“1.1”>
- <g>
- <path d=“M4.296875 34…” />
- <path d=“M4.296875 34…” />
- <path d=“M4.296875 34…” />
- <path d=“M4.296875 34…” />
- </g>
- </svg>
- This convert text to an array containing a list of Savage::Path instance
- installation
- helpful infomation
- generating svg font file
- License
- TODO
Classes and Modules
- Savage
- Savage::Direction
- Text2Path
- Text2Path::Converter
- Text2Path::Glyph
- Text2Path::SvgFont
- Text2Path::SvgPath
Methods
- ::convert — Text2Path
- ::new — Text2Path::Converter
- ::new — Text2Path::SvgFont
- ::parse — Text2Path::SvgPath
- #advance — Text2Path::SvgPath
- #advance_x — Text2Path::Converter
- #default_glyph_height — Text2Path::SvgFont
- #empty? — Text2Path::Glyph
- #font_size — Text2Path::Converter
- #glyph — Text2Path::SvgFont
- #letter_to_path — Text2Path::Converter
- #load_font — Text2Path::SvgFont
- #parse_font_face_info — Text2Path::SvgFont
- #parse_glyph — Text2Path::SvgFont
- #parse_glyphs — Text2Path::SvgFont
- #path_element — Text2Path::Converter
- #to_paths — Text2Path::Converter
- #to_svg — Text2Path::Converter