Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
96f9306b
Commit
96f9306b
authored
Dec 13, 2008
by
Kenichi Handa
Browse files
(font_rescale_ratio): Moved to font.c.
parent
3b18571d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
20 deletions
+11
-20
src/ChangeLog
src/ChangeLog
+9
-0
src/xfaces.c
src/xfaces.c
+2
-20
No files found.
src/ChangeLog
View file @
96f9306b
2008-12-13 Kenichi Handa <handa@m17n.org>
* font.c (font_rescale_ratio): Moved from xfaces.c. Argument
type changed. Handle a font-spec too.
(font_score): Check Vface_font_rescale_alist.
(font_open_entity): Likewise.
* xfaces.c (font_rescale_ratio): Moved to font.c.
2008-12-13 Chong Yidong <cyd@stupidchicken.com>
* xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
...
...
src/xfaces.c
View file @
96f9306b
...
...
@@ -1688,24 +1688,6 @@ static int font_sort_order[4];
#ifdef HAVE_WINDOW_SYSTEM
/* Return a rescaling ratio of a font of NAME. */
static double
font_rescale_ratio (name)
char *name;
{
Lisp_Object tail, elt;
for (tail = Vface_font_rescale_alist; CONSP (tail); tail = XCDR (tail))
{
elt = XCAR (tail);
if (STRINGP (XCAR (elt)) && FLOATP (XCDR (elt))
&& fast_c_string_match_ignore_case (XCAR (elt), name) >= 0)
return XFLOAT_DATA (XCDR (elt));
}
return 1.0;
}
static
enum
font_property_index
font_props_for_sorting
[
FONT_SIZE_INDEX
];
static
int
...
...
@@ -7015,8 +6997,8 @@ face definitions. For instance, the mode my-mode could define a face
DEFVAR_LISP
(
"face-font-rescale-alist"
,
&
Vface_font_rescale_alist
,
doc:
/* Alist of fonts vs the rescaling factors.
Each element is a cons (FONT-
NAME-
PATTERN . RESCALE-RATIO), where
FONT-
NAME-
PATTERN is a regular expression matching a font name, and
Each element is a cons (FONT-PATTERN . RESCALE-RATIO), where
FONT-PATTERN is a
font-spec or a
regular expression matching a font name, and
RESCALE-RATIO is a floating point number to specify how much larger
\(or smaller) font we should use. For instance, if a face requests
a font of 10 point, we actually use a font of 10 * RESCALE-RATIO point. */
);
...
...
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