rhwp 0.9.0

HWP/HWPX document engine for Rust applications, WebAssembly, and CLI automation
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! 같은 문서에 실제 적재된 프로그램에서 확인한 PUA만 그린다.
use super::WebCanvasRenderer;
use crate::renderer::TextStyle;

impl WebCanvasRenderer {
    pub(super) fn source_glyph(&self, text: &str, style: &TextStyle) -> Option<char> {
        self.hft_outline_fonts
            .as_ref()
            .and_then(|fonts| fonts.pua_coverage.glyph(&style.font_family, text))
    }
}