gecko-dev/third_party/rust/core-foundation-sys
Jeff Muizelaar 25c5cd2354 Bug 1671034 - Avoid creating CTFonts from CGFonts. r=lsalzman
The CGFonts end up in a cache that we don't want. Creating the CTFonts
directly should avoid this.

Notes:
add_native_font normally takes a CGFont and we need a CTFontDescriptor
so we convert to postscript name and then postscript name to
CTFontDescriptor. This is wasteful but avoids needing to change the
external API.

To avoid copying the data in the Vec we use a CFAllocator to wrap the
Vec for use by CFData

Differential Revision: https://phabricator.services.mozilla.com/D93518
2020-10-14 20:42:25 +00:00
..
src Bug 1671034 - Avoid creating CTFonts from CGFonts. r=lsalzman 2020-10-14 20:42:25 +00:00
.cargo-checksum.json Bug 1671034 - Avoid creating CTFonts from CGFonts. r=lsalzman 2020-10-14 20:42:25 +00:00
Cargo.toml Bug 1671034 - Avoid creating CTFonts from CGFonts. r=lsalzman 2020-10-14 20:42:25 +00:00
LICENSE-APACHE
LICENSE-MIT
build.rs