Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Misaligned output on wide screen, by online C# compiler

views
     
1024kbps
post Nov 28 2022, 07:27 PM

李素裳
*******
Senior Member
6,017 posts

Joined: Feb 2007



QUOTE(15cm @ Nov 28 2022, 12:45 PM)
heres what i got

user posted image

my guess is has something to do with the font used

because once i change the font...it bcomes this

user posted image
*
yep, if display ascii out put, must use monospaced font, any other types of fonts will cause display distortion
1024kbps
post Nov 29 2022, 12:27 AM

李素裳
*******
Senior Member
6,017 posts

Joined: Feb 2007



QUOTE(FlierMate @ Nov 28 2022, 11:12 PM)
Yes, I read the reply from 1024kbps and your feedback, sounds reasonable.

But how does one change the font of the output textbox in web browser? It ain't a document editor where users can change font easily.  innocent.gif
*
the person who have the compiled code with distorted ascii output must have changed the browser default font.
have to reset the browser settings.

you can ask the person to inspect his/her browser by right-click > inspect >
then it will jump into this section:
<div id="output" class="output">

check the #output font-family, default is monospaced.

Attached Image
1024kbps
post Nov 29 2022, 07:03 PM

李素裳
*******
Senior Member
6,017 posts

Joined: Feb 2007



QUOTE(FlierMate @ Nov 29 2022, 01:08 PM)
Thanks, he replied already, but I think not the font problem, his is also "monospace".

user posted image
*
I changed the Windows display language to PRC, the ascii output breaks, the distortion is same as the image you posted
works fine with Jpn language though.

 

Change to:
| Lo-Fi Version
0.0222sec    1.19    7 queries    GZIP Disabled
Time is now: 23rd December 2025 - 06:18 AM