How to know if 2 ASCII created lines in a command prompt has the same length?

Cem Tuğanlı 1 Reputation point
2022-10-18T12:22:59.917+00:00

Is there a way to know if these 2 lines have the same size in pixels aka length? What code should I use to determine if they have the same length or not?

Just because these perpendicular lines created with ASCII, they differ in length size according to whether they were put next to one another or line by line under each other or not.

251615-image.png

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
328 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 61,731 Reputation points
    2022-10-18T14:36:52.56+00:00

    Unless you use a monospaced font, they will only be the same pixel length if you use the same character. Also fonts are not square, the height is greater than the width.

    0 comments No comments