From b1604f58a401951d8d0edeae6d203685d354a6c7 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 19 Sep 2005 00:45:36 +0000 Subject: [PATCH] (mface__realize): Fix logic of opening a font. --- src/face.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/face.c b/src/face.c index 36ce285..db7c807 100644 --- a/src/face.c +++ b/src/face.c @@ -692,14 +692,16 @@ mface__realize (MFrame *frame, MFace **faces, int num, int size, MFont *font) mfont_put_prop (&spec, Mregistry, Miso8859_1); spec.source = MFONT_SOURCE_X; font = mfont__select (frame, &spec, 0); - if (! font) + if (font) + rfont = mfont__open (frame, font, &spec); + if (! rfont) { mfont_put_prop (&spec, Mregistry, Municode_bmp); spec.source = MFONT_SOURCE_FT; font = mfont__select (frame, &spec, 0); + if (font) + rfont = mfont__open (frame, font, &spec); } - if (font) - rfont = mfont__open (frame, font, &spec); } if (! rfont) rfont = mfont__lookup_fontset (rface->rfontset, NULL, &num, -- 1.7.10.4