CosmosOS / Cosmos

Cosmos is an operating system "construction kit". Build your own OS using managed languages such as C#, VB.NET, and more!
https://www.goCosmos.org
BSD 3-Clause "New" or "Revised" License
2.94k stars 552 forks source link

Canvas.DrawString of accent letters writes wrong chars. (þ instead of è) #2893

Closed alessiob07 closed 10 months ago

alessiob07 commented 10 months ago

Area of Cosmos - What area of Cosmos are we dealing with?

Encoding of DrawString function

Expected Behaviour - What do you think that should happen?

Print the char that I insert

Actual Behaviour - What unexpectedly happens?

It writes the wrong char.

Reproduction - How did you get this error to appear?

aGPU.cnv.DrawString("è", PCScreenFont.Default, Color.White, 100, 10); But it prints þ. (Same using \u00E8) image

image

Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?

05 jan 2024 Devit.

quajak commented 10 months ago

The standard font is for https://en.wikipedia.org/wiki/Code_page_437, if you want other characters you have to use another font.