Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naokim03/win-font-dir
This library provides the path to the font directory in Windows.
https://github.com/naokim03/win-font-dir
directory folder font path rust windows
Last synced: 8 days ago
JSON representation
This library provides the path to the font directory in Windows.
- Host: GitHub
- URL: https://github.com/naokim03/win-font-dir
- Owner: NaokiM03
- License: mit
- Created: 2022-03-13T22:48:47.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-20T18:08:10.000Z (almost 3 years ago)
- Last Synced: 2025-01-01T03:22:36.684Z (about 1 month ago)
- Topics: directory, folder, font, path, rust, windows
- Language: Rust
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# win-font-dir
## About
This library provides the path to the font directory in Windows.
## Motivation
[dirs](https://github.com/dirs-dev/dirs-rs) crate does not support font directory in Windows. \
https://github.com/dirs-dev/dirs-rs/issues/37 \
https://stackoverflow.com/questions/70526705/why-was-the-user-font-directory-not-added-to-the-knownfolder-api## How to use
```toml
# Cargo.toml[dependencies]
win-font-dir = "0.1.0"
```This library has only two methods.
- `fn user_font_dir() -> Some(PathBuf);`
- `fn system_font_dir() -> Some(PathBuf);`## License
win-font-dir is released under the MIT License