mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-23 05:08:34 +01:00
don't use nbsp for image codes
This commit is contained in:
parent
79e0e1a63e
commit
3d1b660c9f
1 changed files with 1 additions and 3 deletions
|
@ -29,9 +29,7 @@ namespace MLEM.Formatting.Codes {
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override string GetReplacementString(GenericFont font) {
|
public override string GetReplacementString(GenericFont font) {
|
||||||
if (this.replacement == null) {
|
if (this.replacement == null) {
|
||||||
// use non-breaking space so that the image won't be line-splitted
|
this.replacement = font.GetWidthString(font.LineHeight);
|
||||||
var strg = font.GetWidthString(font.LineHeight, '\u00A0');
|
|
||||||
this.replacement = strg.Remove(strg.Length - 1) + ' ';
|
|
||||||
this.gapSize = font.MeasureString(this.replacement).X;
|
this.gapSize = font.MeasureString(this.replacement).X;
|
||||||
}
|
}
|
||||||
return this.replacement;
|
return this.replacement;
|
||||||
|
|
Loading…
Reference in a new issue