# Graphics.DrawString for WebListbox.CellPicture - differing results

**URL:** <https://forum.xojo.com/t/graphics-drawstring-for-weblistbox-cellpicture-differing-results/35158>\
**Category:** Web\
**Created:** [December 27, 2016, 2:23pm UTC](https://forum.xojo.com/t/graphics-drawstring-for-weblistbox-cellpicture-differing-results/35158 "2016-12-27T14:23:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Pastor1](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@Mark\_Pastor1](https://forum.xojo.com/u/Mark_Pastor1)\
**Post date:** [December 27, 2016, 2:23pm UTC](https://forum.xojo.com/t/graphics-drawstring-for-weblistbox-cellpicture-differing-results/35158/1 "2016-12-27T14:23:38Z")

</div>

The code below will draw a circle and the appropriate string in each row of a weblistbox in debug mode on my Windows 7 PC, but when the app is deployed to my Xojo.Cloud account, the circle draws but not the string. Any ideas why these behave differently?

PS: I realize this may be a horrible way to fill a weblistbox with text - but that’s not the point of this exercise.

`mainList.addRow ""
Dim p As New Picture(300,26)
Dim g As Graphics = p.Graphics
g.DrawPicture iconCirlce24,1,1
g.ForeColor = &c000000
g.DrawString rs.Field("Description").StringValue,30,16
mainList.CellPicture(mainList.LastIndex,0) = p
`

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [December 27, 2016, 2:28pm UTC](https://forum.xojo.com/t/graphics-drawstring-for-weblistbox-cellpicture-differing-results/35158/2 "2016-12-27T14:28:15Z")

</div>

Yes. Xojo Cloud doesn’t have any fonts installed. You must upload ttf files to the Fonts directory using sftp.

---

<div class="post-metadata">

**Author:** ![Mark\_Pastor1](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@Mark\_Pastor1](https://forum.xojo.com/u/Mark_Pastor1)\
**Post date:** [December 27, 2016, 2:28pm UTC](https://forum.xojo.com/t/graphics-drawstring-for-weblistbox-cellpicture-differing-results/35158/3 "2016-12-27T14:28:53Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [December 27, 2016, 2:29pm UTC](https://forum.xojo.com/t/graphics-drawstring-for-weblistbox-cellpicture-differing-results/35158/4 "2016-12-27T14:29:01Z")

</div>

And yes… this technique will be slow as molasses in production.

---

<div class="post-metadata">

**Author:** ![Terry\_Eutsler](https://forum.xojo.com/user_avatar/forum.xojo.com/terry_eutsler/32/226_2.png) [@Terry\_Eutsler](https://forum.xojo.com/u/Terry_Eutsler)\
**Post date:** [March 29, 2017, 10:02pm UTC](https://forum.xojo.com/t/graphics-drawstring-for-weblistbox-cellpicture-differing-results/35158/5 "2017-03-29T22:02:52Z")

</div>

After I upload my ttf files to the Fonts directory user sftp, is there anything else that is necessary to do? (restart something, etc.)

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [March 30, 2017, 4:09am UTC](https://forum.xojo.com/t/graphics-drawstring-for-weblistbox-cellpicture-differing-results/35158/6 "2017-03-30T04:09:26Z")

</div>

You should only have to restart your app. The next time it launches, the new fonts should appear in the global fonts() array.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:35pm UTC](https://forum.xojo.com/t/graphics-drawstring-for-weblistbox-cellpicture-differing-results/35158/7 "2020-10-29T18:35:35Z")

</div>


