mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-11 13:51:01 -05:00
23dbf72154
This adds a bunch of APIs to CGContext (and supporting types) that aren't actually necessary to turn on subpixel rendering. The key for subpixel rendering were the options passed to bitmap_context_create(). Specifically, kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host are necessary to enable it.
20 lines
530 B
TOML
20 lines
530 B
TOML
[package]
|
|
name = "font"
|
|
version = "0.1.0"
|
|
authors = ["Joe Wilm <joe@jwilm.com>"]
|
|
description = "Font rendering using the best available solution per platform"
|
|
license = "Apache-2.0"
|
|
|
|
[dependencies]
|
|
euclid = "0.6.8"
|
|
libc = "0.2.11"
|
|
|
|
[target.'cfg(not(target_os = "macos"))'.dependencies]
|
|
servo-fontconfig = { git = "https://github.com/jwilm/rust-fontconfig" }
|
|
freetype-rs = "0.9.0"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
core-text = "1.1.1"
|
|
core-foundation = "0.2.2"
|
|
core-graphics = "0.3.2"
|
|
core-foundation-sys = "0.2.2"
|