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

Cem Tuğanlı 1 Reputation point

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.


A cross-platform toolchain for developing, building, running, and publishing .NET applications.
324 questions
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,521 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce ( 59,471 Reputation points

    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