Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

Multiple fonts not supported although it is valid CSS? #119

@agforte

Description

@agforte

It seems that giving a list of fonts to font-family does not work and only the first font family in the list is used.

For example:

dwg.embed_stylesheet("""
          .fonts24 {
            font-family: "Noto Sans", "Noto Naskh Arabic";
            font-size: 24;
          }
        """)

This is valid CSS. However, characters in Arabic will not be displayed as "Noto Sans" does not support them and "Noto Naskh Arabic" is not picked up. However, if I put "Noto Naskh Arabic" as first in the list, now Arabic characters are supported but Latin characters are not as "Noto Sans" is now second in the list.

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions