ID:864932
 
BYOND Version:495
Operating System:Windows XP Home
Web Browser:Chrome 20.0.1132.47
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
Maptext's size will not shrink any smaller than the size 'font-size=xx-small' as defined in CSS.

This is a problem, because right now, I need a font which is smaller than the one that is provided to me.


Also, I'm not sure if I am the only one with this problem, however, I cannot seem to get stylesheets which are defined in the map functioning with maptext.

Here is the sample code I am using:

world << "<SPAN CLASS='test'>hello</span>"


and in the Map's Appearence tab:

.test{color: red}




http://imgur.com/CdsYc

"Hello!!!!! I'm me. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn\nnnnnnnnnnnnnnnnnnnnnn\nnnnnnnnnnnnnnnnnnnnnnnnnnnnn\nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn"


In the image above, you would assume that maptext would not break the boundary of this box.

obj/chatbox
layer = 15
icon = 'chatbox.dmi'

maptext_width = 200
maptext_height = 80
screen_loc = "6,2"


When, in fact, it does so. The only way I could get it to function properly would be to count characters and adding in a \n when necessary.

Expected Results:
I could set the text size to a pixel amount, and utilize CSS.

Maptext breaks the box's boundaries, even though the icon size is 200x80, the maptext_width and maptext_height are set accordingly, and a test is done. I would assume that the text would move itself down to the next line, when in fact, it goes right past.

Actual Results:
I am only able to set maptext size by pre-made CSS default sizes, and cannot utilize the Map's Appearance tab to do these activities.
I know I've tested the map stylesheets with colors, but I can do some retesting. The size you can get is going to depend on the font--with the default being a system font, it's not TrueType so there's a lower limit on the size. Choose a different font family and it should go lower.