dfrg / swash

Font introspection, complex text shaping and glyph rendering.
Apache License 2.0
584 stars 34 forks source link

Cannot render `U+1FB87 : RIGHT ONE QUARTER BLOCK` #28

Closed ad-chaos closed 1 year ago

ad-chaos commented 1 year ago

The JetBrains Mono font does have that glyph present (which I inspected using the BirdFont font inspector), I suspect that some glyph resolution code is might be wrong somewhere, but I don't know which (trust me I tried).

I built the swash_demo from source using the following code for build_document

fn build_document() -> doc::Document {
    use layout::*;
    let mut db = doc::Document::builder();

    use SpanStyle as S;

    let underline = &[
        S::Underline(true),
        S::UnderlineOffset(Some(-1.)),
        S::UnderlineSize(Some(1.)),
    ];

    db.enter_span(&[S::family_list("JetBrains Mono"), S::Size(22.)]);
    db.add_text("🮇");
    db.leave_span();
    db.build()
}

Would be grateful if you could provide some pointers on where should I be looking for what, thanks!

ad-chaos commented 1 year ago

Sorry, this most certainly is a font-fallback issue and not a swash bug.