查看单个帖子
旧 2009-05-05, 11:02 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)