[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: font :height setting



矢木です。

MIYOSHI Masanori <miyoshi@xxxxxxxxxxx> writes:
>>   ・SPEC-PLIST の代わりに any を指定することはできない。
>>   ・:height unspecified と明示的に設定することはできない。
>
>これらの仕様が存在することを知りませんでした。:-)
>これらの仕様を満たすように、Subversion の trunk を修正しました。

r4119 で試してみたのですが、やはり動作と説明が食い違っています。
どちらが正しいのでしょうか?

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>一方、specの項目がfunctionの時、
中略...
wiki>(論理フォント . オプション) のコンスペアを返却することも可能です。 

実際に試してみると (cons LOGFONT OPTION-ALIST) ではだめで
(list LOGFONT OPTION-ALIST) を返すと OPTION-ALIST が有効になります。

おわり