![]() |
【转帖】ext Wrap
text wrap
text wrap i am having problems with text wrapping being done slightly wrong. many text strings wrap correctly, but some do not. typically the lines of text end up longer than they should, so the text block is wider and does not contain as many lines as it should. in the attached file, the text is supposed to wrap to three lines with the initial line break after the word "annotation" in the first line. instead it wraps to two lines with the line break after "wrap". i have tried both odamfcapp and odvectorizeex and both have the same problem. i have also noticed several applications, like bentley view, that are based on the toolkit have the same wrapping problem. i have attached the dwg and a jpg converted from that file. look at the text in the view "vwfront". attached images the reason of different from acad text displaying is incorrect font used (it should be txt.shx) the font used has different from txt.shx metrics so text is splitted between lines in another way. btw, if txt.shx is available odamfcapp displays the text exactly as autocad does. sergey slezkin specifiy font location you are correct that if i put txt.shx in the same directory as the file then everything works. i had it numerous places (including the executable directory) but not in with the drawing. what call can i use to set a pointer to a different location? i need one spot where the font files can be, not scattered with all the drawings. i tried setting the acad environment variable but that did not help. thanks. you can override oddbhostappservices::findfile() to look for fonts at some specific place. see also developer's guide/font handling. sergey slezkin quote: originally posted by sergey slezkin you can override oddbhostappservices::findfile() to look for fonts at some specific place. see also developer's guide/font handling. the developer's guide to font handling says that it will look in the location(s) pointed to by the acad environment variable. the header file says "acadprefix". i have tried every reasonable combination i can think of based on that and nothing seems to work for finding fonts. i have tried: acad acadprefix acadfont acadfonts acadshx i have pointed the environment variable to the main acad directory and to the fonts subdirectory, but nothing seems to work. should the fonts be able to be found by checking the acad environment variable? if so, why does it not appear to work? dd uses "acad" evironment variable to search for font files. have you restarted your computer after setting acad variable? sergey slezkin |
所有的时间均为北京时间。 现在的时间是 05:01 PM. |