# Style DrawSample Issue

**URL:** <https://community.thinkgeo.com/t/style-drawsample-issue/7054>\
**Category:** Services\
**Created:** [October 17, 2008, 10:02pm UTC](https://community.thinkgeo.com/t/style-drawsample-issue/7054 "2008-10-17T22:02:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@David](https://community.thinkgeo.com/u/David)\
**Post date:** [October 17, 2008, 10:02pm UTC](https://community.thinkgeo.com/t/style-drawsample-issue/7054/1 "2008-10-17T22:02:13Z")

</div>

With&nbsp;point&nbsp;styles&nbsp;if&nbsp;we&nbsp;select&nbsp;a&nbsp;font&nbsp;as&nbsp;the&nbsp;point&nbsp;style&nbsp;no&nbsp;matter&nbsp;how&nbsp;big&nbsp;the&nbsp;font&nbsp;is&nbsp;(point&nbsp;size)&nbsp;the&nbsp;DrawSample&nbsp;method&nbsp;always&nbsp;draws&nbsp;the&nbsp;font&nbsp;so&nbsp;small&nbsp;it&nbsp;is&nbsp;unitelligable.

Here&nbsp;is&nbsp;the&nbsp;code&nbsp;that&nbsp;we&nbsp;are&nbsp;using&nbsp;to&nbsp;set&nbsp;that&nbsp;up:

&nbsp;

SusaPointStyle&nbsp;newPointStyle&nbsp;=&nbsp;new&nbsp;SusaPointStyle();&nbsp;

&nbsp;&nbsp;

&nbsp;newPointStyle.PointType&nbsp;=&nbsp;PointType.Character;&nbsp;

&nbsp;newPointStyle.CharacterFont&nbsp;=&nbsp;new&nbsp;GeoFont(fontName.Text,&nbsp;(float)charSizeUpDown.Value);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;font&nbsp;size&nbsp;is&nbsp;between&nbsp;2&nbsp;and&nbsp;100&nbsp;&nbsp;

&nbsp;newPointStyle.CharacterIndex&nbsp;=&nbsp;getCharacter();&nbsp;&nbsp;//returns&nbsp;a&nbsp;value&nbsp;between&nbsp;32&nbsp;and&nbsp;112&nbsp;

&nbsp;newPointStyle.CharacterSolidBrush&nbsp;=&nbsp;charBrush;&nbsp;

&nbsp;&nbsp;

&nbsp;stylePreview.Image&nbsp;=&nbsp;new&nbsp;Bitmap(stylePreview.Width,&nbsp;stylePreview.Height);&nbsp;

&nbsp;GeoCanvas&nbsp;gc&nbsp;=&nbsp;new&nbsp;GdiPlusGeoCanvas();&nbsp;

&nbsp;&nbsp;

&nbsp;gc.BeginDrawing(stylePreview.Image,&nbsp;new&nbsp;RectangleShape(0,&nbsp;(double)stylePreview.Image.Height,&nbsp;(double)stylePreview.Image.Width,&nbsp;0));&nbsp;

&nbsp;try&nbsp;{&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;newPointStyle.DrawSample(gc);&nbsp;

&nbsp;}&nbsp;

&nbsp;catch&nbsp;(Exception&nbsp;ex)&nbsp;{&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//no&nbsp;error&nbsp;but&nbsp;the&nbsp;sample&nbsp;is&nbsp;drawn&nbsp;VERY&nbsp;tiny&nbsp;

&nbsp;}

&nbsp;

As&nbsp;always&nbsp;your&nbsp;insight&nbsp;is&nbsp;greatly&nbsp;appreciated.&nbsp;

&nbsp;John

---

<div class="post-metadata">

**Author:** ![Ben](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ben/32/25720_2.png) [@Ben](https://community.thinkgeo.com/u/Ben)\
**Post date:** [October 20, 2008, 11:11pm UTC](https://community.thinkgeo.com/t/style-drawsample-issue/7054/2 "2008-10-20T23:11:03Z")

</div>

John,

I&nbsp;think&nbsp;this&nbsp;is&nbsp;a&nbsp;bug,&nbsp;thanks&nbsp;for&nbsp;picking&nbsp;it&nbsp;out&nbsp;and&nbsp;we&nbsp;are&nbsp;trying&nbsp;to&nbsp;solve&nbsp;it&nbsp;out&nbsp;in&nbsp;the&nbsp;next&nbsp;beta.&nbsp;For&nbsp;now&nbsp;you&nbsp;can&nbsp;use&nbsp;GeoCanvas.DrawText&nbsp;to&nbsp;walk&nbsp;around,&nbsp;see&nbsp;attached&nbsp;code&nbsp;for&nbsp;detail.

Ben

[52-DisplayTheText.txt](https://community.thinkgeo.com/uploads/default/original/2X/5/5e10b7a35c4dfc9c36d8c5caf91a067f39d1147d.txt) (623 Bytes)
