mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Use snake case in freetype.
This commit is contained in:
parent
573c0a7468
commit
24546b4da2
1 changed files with 3 additions and 5 deletions
|
@ -2,8 +2,6 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
#![allow(non_snake_case)]
|
|
||||||
|
|
||||||
extern crate fontconfig;
|
extern crate fontconfig;
|
||||||
extern crate freetype;
|
extern crate freetype;
|
||||||
|
|
||||||
|
@ -28,9 +26,9 @@ static FC_FONTFORMAT: &'static [u8] = b"fontformat\0";
|
||||||
pub fn for_each_available_family<F>(mut callback: F) where F: FnMut(String) {
|
pub fn for_each_available_family<F>(mut callback: F) where F: FnMut(String) {
|
||||||
unsafe {
|
unsafe {
|
||||||
let config = FcConfigGetCurrent();
|
let config = FcConfigGetCurrent();
|
||||||
let fontSet = FcConfigGetFonts(config, FcSetSystem);
|
let font_set = FcConfigGetFonts(config, FcSetSystem);
|
||||||
for i in 0..((*fontSet).nfont as isize) {
|
for i in 0..((*font_set).nfont as isize) {
|
||||||
let font = (*fontSet).fonts.offset(i);
|
let font = (*font_set).fonts.offset(i);
|
||||||
let mut family: *mut FcChar8 = ptr::null_mut();
|
let mut family: *mut FcChar8 = ptr::null_mut();
|
||||||
let mut format: *mut FcChar8 = ptr::null_mut();
|
let mut format: *mut FcChar8 = ptr::null_mut();
|
||||||
let mut v: c_int = 0;
|
let mut v: c_int = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue