idunno
13 years agoVisitor
Problem with getOneLineWidth
When I try
the line width returned is 0, but when I use getdefaultfont, for example
it returns 752. I need the width with the lmroman font, so how do I get line width with a non default font? What am I doing wrong?
font_registery = CreateObject("roFontRegistry") 'GIVES roFont
font_regular = font_registery.getFont("lmroman10 caps", 18, 18, false)
print "line width"
print font_regular.GetOneLineWidth("Alabama",99999)
the line width returned is 0, but when I use getdefaultfont, for example
font_registery = CreateObject("roFontRegistry") 'GIVES roFont
font_regular = font_registery.getdefaultfont()
print "line width"
print font_regular.GetOneLineWidth("Alabama",99999)
it returns 752. I need the width with the lmroman font, so how do I get line width with a non default font? What am I doing wrong?