高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】font searching algorithm
font searching algorithm
font searching algorithm
hi,
i've noticed, that oddbtextstyletable::setfont witch font name "arial" calls indirectly findfile twice; first with "arial", next with "arial.shx". is it correct? can i make library not call setfont second time with ".shx" added?
tia
best regards,
michał Śliwka
if findfile() returns some path being called for the first time it will not be called second time.
in situation you described probably it fails to find "arial" so it's called for the second time with "arial.shx".
also chapter "font handling" from dd developer's guide" could be usefull.
sergey slezkin
findfile() returns correct path and it is called second time.
|