几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】problem with mte (http://www.dimcax.com/hust/showthread.php?t=18137)

yang686526 2009-05-06 11:23 PM

【转帖】problem with mte
 
problem with mtext
problem with mtext
hi!
i have one problem.
the call of explodefragments or explode for oddbmtext make two different strings from one source string.
see attached file
vyacheslav
attached files
what problem?
two words of mtext are located on different lines. so 2 text fragments are created.
exploding mtext also splits the source string if color, font, size or other text properties are switched inside the source string.
sergey slezkin
source code has one line with two words but after function explodefragments i have two lines. every line contains only one word.
can you explane me features of writing virt function findfile
can i write to you in russian?
attached files (20.8 kb, 15 views)

if the font gost_a is installed the text is drawn as single line (i see it's as a single line in file preview). but if the font is not installed and text is rendered with substituted font - it is displayed on 2 lines. in such case it's exploded into 2 fragments.
on windows findfile() would not help in this case. ttf font must be installed (known to windows) to be used by dd.
on other platforms dd work via freetype library and calls findfile() to access .ttf
you may e-mail me in russian.
sergey slezkin


所有的时间均为北京时间。 现在的时间是 04:36 AM.