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
ba98e3a0
Commit
ba98e3a0
authored
May 06, 2009
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(font_update_drivers): Sanity fallback to avoid disabling all drivers.
parent
834cf436
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
src/ChangeLog
src/ChangeLog
+3
-0
src/font.c
src/font.c
+17
-0
No files found.
src/ChangeLog
View file @
ba98e3a0
2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
* font.c (font_update_drivers): Sanity fallback to avoid disabling
all drivers.
* nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
...
...
src/font.c
View file @
ba98e3a0
...
...
@@ -3655,6 +3655,23 @@ font_update_drivers (f, new_drivers)
next
=
&
(
*
next
)
->
next
;
}
*
next
=
NULL
;
if
(
!
f
->
font_driver_list
->
on
)
{
/* None of the drivers is enabled: enable them all.
Happens if you set the list of drivers to (xft x) in your .emacs
and then use it under w32 or ns. */
for
(
list
=
f
->
font_driver_list
;
list
;
list
=
list
->
next
)
{
struct
font_driver
*
driver
=
list
->
driver
;
eassert
(
!
list
->
on
);
if
(
!
driver
->
start_for_frame
||
driver
->
start_for_frame
(
f
)
==
0
)
{
font_prepare_cache
(
f
,
driver
);
list
->
on
=
1
;
}
}
}
}
for
(
list
=
f
->
font_driver_list
;
list
;
list
=
list
->
next
)
...
...
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