高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】question about japanese text vectorizing
question about japanese text vectorizing
question about japanese text vectorizing
helloo
i attached dwg file with japanese text ("3.dwg") !
in odamfcapp i loaded this attached dwg file ("3.dwg") and vectorized it with wingdi ! i cannot see my text it is "??". this text has a txt.shx font, and i have installed acad at my mashine and also copy all text from acad\fonts folder to the same folder where is odamfcapp rebuilded ! this is same problem with my application which using dwgdirect version 2.5.1.
another dwg file does not have this problem like attached file "1.dwg" !
is this problem with text, or something else !?
can someone explain to me relations between 3 functions:
getsubstitutefont, getpreferablefont, findfile, in which order they will be called if i have japanese text for vectorizing and this japanese text has a font name which is not in a acad\fonts folder and also is not at the same folder where is my app. it is at another location (this font file!). in general how works this issues ?
best regards
ervin
attached files
hello ervin,
quote:
originally posted by ervind
this text has a txt.shx font.
this font doesn't have asian symbols. for asian symbols with this font must be used big font.
quote:
originally posted by ervind
another dwg file does not have this problem like attached file "1.dwg" !
in this file is used ttf font which has asian symbols.
quote:
originally posted by ervind
can someone explain to me relations between 3 functions:
getsubstitutefont, getpreferablefont, findfile, in which order they will be called
see dwgdirect documentation (topic "font handling").
best regards,
sergey z.
in which cases function findfile will not be called ?
is there that case ?
reason because i asking this is, with older dwgdirect library than 2.5.1 i do not have problem with searching for font_file if font not exist !
this searching was made in findfile function, and this function always called if text entity has a font which is not installed at the system, and with findfile function i was made that user can give font_files from different folder to the dwdirect where exist font_file and vectorizing was done correctly !
now with 2.5.1 version i have cases thas findfile was not called like for file "3.dwg"
br
ervin.
hello ervind,
quote:
originally posted by ervind
in which cases function findfile will not be called ?
is there that case ?
findfile() may be not called in case name file for ttf font isn't found by using descriptor (typeface and flags). for your files "3.dwg" findfile() is called for txt.shx.
best regards,
sergey z.
|