Skip to content

Word wrapping with Drawables? #1686

Discussion options

You must be logged in to vote

After a bit more fooling around and fixing a bug that I thought was the issue all along, I decided to just go the non-Drawables route. It's a lot more ugly, but it works, so who cares!

const int fontSize = 11 * SCALE;
const int originX = 15 * SCALE;
var originY = 215 * SCALE - guildOffset;
const int textBoxWith = 360 * SCALE;
var sanitizedBlurb = new string(member.Blurb.Where(AllowedSpecialCharacters.Contains).ToArray());
var settings = new MagickReadSettings
{
    Font = "Data/TF2secondary.ttf",
    BackgroundColor = MagickColors.Transparent,
    FillColor = MagickColors.WhiteSmoke,
    StrokeColor = MagickColors.Transparent,
    FontPointsize = fontSize,
    Width = textBoxWith
};

using 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by QuantumToasted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant