Labelmaker
Easily create text-based images. Perfect for quickly creating decals in Tabletop Simulator.
"text-left"
@align === "center" -> "text-center"
@align === "right" -> "text-right"
end
}
"}
style={"
aspect-ratio: 4 / 3;
color: #{if @label_too_long, do: "white", else: @color};
#{Tools.outline(@outline, @label_too_long)}
font-family: #{@font}; font-size: #{@size}px; line-height: #{@size}px;
background-color: #{if @preview_background == "", do: @color, else: ""}
"}
>
<%= if @label_too_long do %>
{Constants.max_label_error()}
<% else %>
{raw(@preview_text)}
<% end %>