From: handa Date: Wed, 25 Aug 2004 08:46:53 +0000 (+0000) Subject: (mfontset): Initialize font_spec_list member. X-Git-Tag: REL-1-2-0~220 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2feeb02df374784d9337ff9663da8abc69af8535;p=m17n%2Fm17n-lib.git (mfontset): Initialize font_spec_list member. (mfontset_copy): Load fontset if necessary. --- diff --git a/src/fontset.c b/src/fontset.c index 3f8e938..6feef43 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -696,6 +696,7 @@ mfontset (char *name) fontset->per_script = mplist (); fontset->per_charset = mplist (); fontset->fallback = mplist (); + fontset->font_spec_list = mplist (); } mplist_put (fontset_list, sym, fontset); } @@ -749,6 +750,9 @@ mfontset_copy (MFontset *fontset, char *name) M17N_OBJECT (copy, free_fontset, MERROR_FONTSET); copy->name = sym; + if (fontset->mdb) + load_fontset_contents (fontset); + if (fontset->per_script) { copy->per_script = mplist ();