Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Misaligned output on wide screen, by online C# compiler

views
     
TSFlierMate
post Nov 24 2022, 07:15 PM, updated 6d ago

On my way
****
Junior Member
514 posts

Joined: Nov 2020
Can someone tell what is the problem with misaligned output on really wide screen?

I run the C# code through online compiler on:
https://dotnetfiddle.net/15ih29

Below is different result I got:

On my normal laptop screen:
user posted image

On his wide screen:
user posted image

My cyberpal monitor:
user posted image

Is this that particular website issue, or incompatible with wide screen?

This post has been edited by FlierMate: Nov 24 2022, 07:16 PM
TSFlierMate
post Nov 25 2022, 03:27 PM

On my way
****
Junior Member
514 posts

Joined: Nov 2020
It is not my coding problem, as it is running correctly on Visual Studio (local IDE):

user posted image
15cm
post Nov 28 2022, 12:45 PM

Getting Started
**
Junior Member
149 posts

Joined: Apr 2022

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
1024kbps
post Nov 28 2022, 07:27 PM

李素裳
*******
Senior Member
5,523 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
15cm
post Nov 28 2022, 10:12 PM

Getting Started
**
Junior Member
149 posts

Joined: Apr 2022

QUOTE(1024kbps @ Nov 28 2022, 07:27 PM)
yep, if display ascii out put, must use monospaced font, any other types of fonts will cause display distortion
*
FlierMate
TSFlierMate
post Nov 28 2022, 11:12 PM

On my way
****
Junior Member
514 posts

Joined: Nov 2020
QUOTE(15cm @ Nov 28 2022, 10:12 PM)
FlierMate
*
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
1024kbps
post Nov 29 2022, 12:27 AM

李素裳
*******
Senior Member
5,523 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
TSFlierMate
post Nov 29 2022, 01:08 PM

On my way
****
Junior Member
514 posts

Joined: Nov 2020
QUOTE(1024kbps @ Nov 29 2022, 12:27 AM)
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
*
Thanks, he replied already, but I think not the font problem, his is also "monospace".

user posted image
1024kbps
post Nov 29 2022, 07:03 PM

李素裳
*******
Senior Member
5,523 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.
TSFlierMate
post Nov 29 2022, 07:10 PM

On my way
****
Junior Member
514 posts

Joined: Nov 2020
QUOTE(1024kbps @ Nov 29 2022, 07:03 PM)
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.
*
Thank you for helping to test, so the problem is with the Chinese Windows. I am glad now I know the answer.

 

Change to:
| Lo-Fi Version
0.0129sec    0.18    6 queries    GZIP Disabled
Time is now: 5th December 2022 - 06:09 AM