Bitmap fonts in a scrollview - possible???

Hi, I posted this in another forum before I noticed widgets have got their own space.

Has anybody had any luck inserting sprites, or more specifically bitmap fonts into a scrollView?

I’m using the bitmap library (bmf.lua) posted on the forums a little while back:

http://developer.anscamobile.com/forum/2011/02/05/bitmap-font

If I don’t use a mask on the scrollView the font shows fine, otherwise it just displays the very first word and that’s it. Swapped the bitmap font back with a text object and they all work fine as well.

Any help or advice would be extremely appreciated… [import]uid: 33275 topic_id: 26140 reply_id: 326140[/import]

Just in case it helps, here’s the code I’m using…

[code]local scrollView3 = widget.newTableView{
–objective scrollView
width = 300,
height = 187,
scrollWidth = 300,
scrollHeight = 700,
–left = 15,
–top = 65,
bgColor = {255,0,0,128},
–topPadding = 80,
–bottomPadding = 120,
maskFile=“mask-320x366.png” --“optionsBoard2.png”, 166, 176)
}

local objGroup = display.newGroup()

for i,v in pairs(objectiveData) do

–local objText = display.newText(v.message, 200, yPos, 260, 72, “GangofThree”, 10)
local objText = bmf.newString(bmglyph10, v.message)
–local objText = bmf.newParagraph(bmglyph10, v.message, 158)

print("type objText: "…type(objText))
dump(objText)
objText.x = 10
objText.y = yPos

print("objText.x: "…objText.x)
print("objText.y: "…objText.y)
print("objText.contentWidth: "…objText.contentWidth)
print("objText.contentHeight: "…objText.contentHeight)
–objText:setTextColor(255,0,0)
–localGroup:insert(objText)

objGroup:insert(objText)

yPos = yPos + objText.contentHeight

–[[local tickImg
if v.complete == true then
tickImg = display.newImageRect(“tick.png”, 8, 8)
else
tickImg = display.newImageRect(“cross.png”, 8, 8)
end

tickImg.x = (objText.x + objText.contentWidth) + 10
tickImg.y = (objText.y + objText.contentHeight/2)
print("tickImg.x: "…tickImg.x)
print("tickImg.y: "…tickImg.y)
–localGroup:insert(tickImg)

–objGroup:insert(tickImg)]]–
end

scrollView3:insert(objGroup)
[/code] [import]uid: 33275 topic_id: 26140 reply_id: 106532[/import]