koharu-renderer
Text layout and rasterization utilities used to place translated text back onto manga pages.
FontBook: loads system fonts, filters by language/family, and caches face data.Layouter: shapes text with swash, supports horizontal and vertical flow, and applies OpenType vertical features when needed.Renderer: draws glyph runs into anRgbaImagewith subpixel and color glyph support plus blending helpers.types: simple aliases for colors and points shared across the renderer.
Example
use ;
let mut fontbook = new;
let fonts = fontbook.filter_by_families;
let mut layouter = new;
let layout = layouter.layout?;
let mut canvas = new;
let mut renderer = new;
renderer.render?;
Licensed under Apache-2.0 (../LICENSE-APACHE).