[Interest] Qt and fixed width/pitch font

Atlant Schmidt aschmidt at dekaresearch.com
Wed Aug 1 18:28:30 CEST 2012


Carl:

  Two points:

  1. In most fonts, the numbers are designed to all use the
     same pitch so numbers will inherently align. (This is
     isn't true of all fonts, though.) And "+", "-", "$"/
     "€"/"¥"/"£" (etc.), and a few other characters that
     typically hang around with numbers may still give you
     some alignment grief.

  2. If you therefore decide to actually go fully fixed-pitch,
     you should use a font which is actually designed for
     fixed-pitch ("monospaced") operation. If you don't,
     your application will look *UGLY*.

                                 Atlant

-----Original Message-----
From: interest-bounces+aschmidt=dekaresearch.com at qt-project.org [mailto:interest-bounces+aschmidt=dekaresearch.com at qt-project.org] On Behalf Of Carl Schumann
Sent: Wednesday, August 01, 2012 11:56 AM
To: interest at qt-project.org
Subject: [Interest] Qt and fixed width/pitch font

Hi,

Qt community I am developing a spreadsheet like program.   As such I
would like to have numeric values line up, i.e., units digit, etc. form
a column.   That would seem to require a fixed width/pitch font.   So I
tried QFont::setFixedPitch(true).   This did not result in a fixed pitch
font.   Any ideas how I should debug this failure or work around it
please.   Thanks for any help.

Sincerely,
Carl Schumann

_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


 Click https://www.mailcontrol.com/sr/ATuuoO1trc!TndxI!oX7UsdpzMR7Bo2KmhYdqeOUADdHFdoBEtYQhHqYZRG24R6stna8Ms8t0Hql3fOT1a7RlQ==  to report this email as spam.

This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.


More information about the Interest mailing list