![]() ![]() That would allow to select a fallback font by character during shaping. The metadata format could, apart from style, weight and stretch, also include a range of optional fields like scripts and covered unicode ranges. And something like your current fontdb could be built on top of this. Then, applications can implement their own matching. I think there's something to be said for a simple interface (trait + some structs) that just provides a list of font faces with metadata and the option to load the raw bytes for one of the faces. For example, for our use case I would like to provide usvg with the available fonts, but let it decide on how to do its CSS font matching. But it's unfortunately also not very flexible because (1) the Handle type is a closed enum with either file path or buffer, so still no network, and (2) the font matching algorithm is part of the source and thus cannot be customized per-application independently from the font enumeration. font-kit has a slightly more generic interface. With fontdb there's a bunch of ways to provide the font (network is unfortunately not possible), but the font matching algorithm is fixed. I don't really think a single concrete implementation can be one-size-fits-all. We'll do our best to keep these links up to date, but if we fall behind please don't hesitate to shoot us a modmail. This is not an official Rust forum, and cannot fulfill feature requests. Err on the side of giving others the benefit of the doubt.Īvoid re-treading topics that have been long-settled or utterly exhausted. Please create a read-only mirror and link that instead.Ī programming language is rarely worth getting worked up over.īe charitable in intent. If criticizing a project on GitHub, you may not link directly to the project's issue tracker. Post titles should include useful context.įor Rust questions, use the stickied Q&A thread.Īrts-and-crafts posts are permitted on weekends.Ĭriticism is encouraged, though it must be constructive, useful and actionable. For content that does not, use a text post to explain its relevance. Posts must reference Rust or relate to things using Rust. We observe the Rust Project Code of Conduct. Strive to treat others with respect, patience, kindness, and empathy. Please read The Rust Community Code of Conduct The Rust Programming LanguageĪ place for all things related to the Rust programming language-an open-source systems language that emphasizes performance, reliability, and productivity. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |