pango/font_description.rs
1// Copyright 2017, The Gtk-rs Project Developers.
2// See the COPYRIGHT file at the top-level directory of this distribution.
3// Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT>
4
5use glib::translate::*;
6use pango_sys;
7use FontDescription;
8
9impl FontDescription {
10 pub fn set_family_static(&mut self, family: &'static str) {
11 unsafe {
12 pango_sys::pango_font_description_set_family_static(
13 self.to_glib_none_mut().0,
14 family.to_glib_none().0,
15 );
16 }
17 }
18}