Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5bf192ca
Commit
5bf192ca
authored
Aug 15, 2012
by
Dmitry Antipov
Committed by
Chong Yidong
Aug 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix last change to xg_get_font.
* gtkutil.c (xg_get_font): Use pango_units_to_double.
parent
8453bb55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
src/ChangeLog
src/ChangeLog
+4
-0
src/gtkutil.c
src/gtkutil.c
+3
-3
No files found.
src/ChangeLog
View file @
5bf192ca
2012-08-15 Dmitry Antipov <dmantipov@yandex.ru>
* gtkutil.c (xg_get_font): Use pango_units_to_double.
2012-08-15 Chong Yidong <cyd@gnu.org>
* gtkutil.c (xg_get_font): Rename from xg_get_font_name. When
...
...
src/gtkutil.c
View file @
5bf192ca
...
...
@@ -2101,15 +2101,15 @@ xg_get_font (FRAME_PTR f, const char *default_name)
{
Lisp_Object args[8];
const char *name = pango_font_description_get_family (desc);
gint size = pango_font_description_get_size (desc);
PangoWeight weight = pango_font_description_get_weight (desc);
PangoStyle
style = pango_font_description_get_style (desc);
PangoStyle style
= pango_font_description_get_style (desc);
args[0] = QCname;
args[1] = build_string (name);
args[2] = QCsize;
args[3] = make_float (((double) pango_font_description_get_size (desc))
/ PANGO_SCALE);
args[3] = make_float (pango_units_to_double (size));
args[4] = QCweight;
args[5] = XG_WEIGHT_TO_SYMBOL (weight);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment