[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]
Re: font :height setting
- X-ml-count: 7147
- Subject: Re: font :height setting
- From: MIYOSHI Masanori <miyoshi@xxxxxxxxxxx>
- Date: Tue, 01 Aug 2006 23:07:32 +0900
- User-agent: Gnus/5.110006 (No Gnus v0.6) Meadow-3.00-dev (KIKU)
>>>>> [meadow-users-jp : No.7141] にて
>>>>> 矢木さんは書きました:
wiki>SPEC-PLISTで、明示的に条件が指定されていないときには、
wiki>このunspecifiedが指定されているものとみなされます。
> (mw32-convert-fr-spec-to-vec
> '(:char-spec unspecified :width unspecified :height unspecified
> :weight unspecified :slant unspecified :family unspecified))
> => [unspecified unspecified unspecified unspecified unspecified unspecified]
> (mw32-convert-fr-spec-to-vec nil)
> => [0 normal nil "\\*" normal normal]
仕様と実装が思いっきり違ってますね。
実装を仕様に合わせて修正しても良いのですが、同じ設定で選択されるフォ
ントが異なってしまいます。
影響の大きさを考え、Wiki の仕様を修正することで対処しました。
ちなみに、
> (mw32-convert-fr-spec-to-vec nil)
> => [0 normal nil "\\*" normal normal]
第三要素の nil は未定義で予期していないものですが、意味的には
unspecified と同じです。
wiki>(論理フォント . オプション) のコンスペアを返却することも可能です。
> 実際に試してみると (cons LOGFONT OPTION-ALIST) ではだめで
> (list LOGFONT OPTION-ALIST) を返すと OPTION-ALIST が有効になります。
こちらについても、Wiki の仕様を修正することで対処しました。
--
三好 雅則 http://miyoshi.meadowy.org/