Closed eangelov closed 2 years ago
DEBUG
RELEASE
When using DrawText on the test image to draw "ดวันโอวัน" everything is as expected
When we draw "Test ดวันโอวัน" we get
Test Image:
using SixLabors.Fonts; using SixLabors.ImageSharp; using SixLabors.ImageSharp.Drawing.Processing; using SixLabors.ImageSharp.Processing; var fonts = new FontCollection(); fonts.AddSystemFonts(); string textToDraw = "ดวันโอวัน"; TextOptions textOpts = new TextOptions( fonts.Get( "Microsoft Sans Serif" ).CreateFont( 60, SixLabors.Fonts.FontStyle.Regular ) ){ Origin = new SixLabors.ImageSharp.PointF( 10, 10 ) }; using Image image = Image.Load( "testImage.jpg" ); image.Mutate( x => x.DrawText( textOpts, textToDraw, Color.ParseHex( "#000000" ) ) ); image.SaveAsJpeg( "resultImage_1.jpg" ); using Image image2 = Image.Load( "testImage.jpg" ); image2.Mutate( x => x.DrawText( textOpts, $"Test {textToDraw}", Color.ParseHex( "#000000" ) ) ); image2.SaveAsJpeg( "resultImage_2.jpg" );
See https://github.com/SixLabors/Fonts/issues/215 we don't have a shaper for it yet.
I'll have a look at why it changes when mixed with English though as that's odd.
Prerequisites
DEBUG
andRELEASE
modeDescription
When using DrawText on the test image to draw "ดวันโอวัน" everything is as expected
When we draw "Test ดวันโอวัน" we get
Test Image:
Steps to Reproduce
System Configuration