All Projects → matprec → rust-font-loader

matprec / rust-font-loader

Licence: MIT license
A font loading utility written in rust.

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to rust-font-loader

Ligatured-Hack
Automatically patch latest Hack Font with latest JetBrains Mono / FiraCode Ligatures
Stars: ✭ 196 (+345.45%)
Mutual labels:  font
venomlinux.org
Source Based Linux Distribution
Stars: ✭ 17 (-61.36%)
Mutual labels:  unix
yaldevi-font
A Font family supporting Sinhala, Tamil and Latin.
Stars: ✭ 14 (-68.18%)
Mutual labels:  font
rTerm
Fake UNIX terminal for personal pages
Stars: ✭ 19 (-56.82%)
Mutual labels:  unix
BindToInterface
With this program you can bind applications to a specific network interface / network adapter. This is very useful if you have multiple (internet) connections and want your program to use a specific one.
Stars: ✭ 67 (+52.27%)
Mutual labels:  unix
pidp11-2.11bsd
Using the historical unix 2.11 BSD operating system on the PiDP-11. With examples such as cool-retro-weatherstation.
Stars: ✭ 57 (+29.55%)
Mutual labels:  unix
dotfiles
My personal configuration and bootstrap files
Stars: ✭ 14 (-68.18%)
Mutual labels:  unix
bac-genomics-scripts
Collection of scripts for bacterial genomics
Stars: ✭ 39 (-11.36%)
Mutual labels:  unix
Scribble-Font
Scribble Font for Prototyping & Wireframing
Stars: ✭ 48 (+9.09%)
Mutual labels:  font
Ob3vil1on
Another archive cracker created in python | cracking [zip/7z/rar] by bruteforcing [ NOT MAINTAINED ]
Stars: ✭ 17 (-61.36%)
Mutual labels:  unix
colocat
Fegeya Colocat, Colorized 'cat' implementation. Written in C++17.
Stars: ✭ 14 (-68.18%)
Mutual labels:  unix
luadch
ADC Hub Server
Stars: ✭ 46 (+4.55%)
Mutual labels:  unix
alt-hack
A stylistic alternate glyph library for the Hack typeface
Stars: ✭ 85 (+93.18%)
Mutual labels:  font
terminal-themes
rc files for vim, tmux, iterm and zsh
Stars: ✭ 18 (-59.09%)
Mutual labels:  font
godzilla
a powerful go web framework
Stars: ✭ 22 (-50%)
Mutual labels:  unix
ft select
A robust file browser and manager in the terminal.
Stars: ✭ 14 (-68.18%)
Mutual labels:  unix
perplexed
OTF monospace typeface, a derivative of IBM Plex Mono with Powerline glyphs added
Stars: ✭ 23 (-47.73%)
Mutual labels:  font
AiliceOS
AiliceOS: Build an x86_64 and UEFI OS using Rust
Stars: ✭ 59 (+34.09%)
Mutual labels:  unix
Huruf
A simple chrome extension to make reading Arabic easier
Stars: ✭ 23 (-47.73%)
Mutual labels:  font
gatsby-omni-font-loader
Font loader optimized for maximum performance. Removes render-blocking font resources and loads them asynchronusly. Handle FOUT & FOUC with font loading status watcher. Supports both local-hosted fonts and web fonts.
Stars: ✭ 98 (+122.73%)
Mutual labels:  font

Font-Loader

A font loading utility written in and for Rust.

Build Status

Currently supported platforms:

  • Windows
  • Mac
  • Every platform supporting Fontconfig
    • Unix
    • Linux

Usage

Linux, Unix:

Fontconfig is required on Linux and Unix, as it is the default Fontmanagement utility on these platforms.

sudo apt-get install libfontconfig libfontconfig1-dev

Example

Cargo.toml

[dependencies]
font-loader = "https://github.com/matprec/rust-font-loader"

main.rs:

extern crate font_loader as fonts;

use fonts::system_fonts;

fn main() {
	// Enumerate all fonts
    let sysfonts = system_fonts::query_all();
    for string in &sysfonts {
        println!("{}", string);
    }

	let mut property = system_fonts::FontPropertyBuilder::new().monospace().build();
	let sysfonts = system_fonts::query_specific(&mut property);
	for string in &sysfonts {
		println!("Monospaced font: {}", string);
	}

	let property = system_fonts::FontPropertyBuilder::new().family("Arial").build();
	let (font, _) = system_fonts::get(&property).unwrap();
	println!("{:?}", &font[..50]);
}

License

The MIT License (MIT) Copyright (c) font-loader Developers

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].