realbasic-nug
[Top] [All Lists]

Re: Linux Text Size

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Linux Text Size
From: "Glenn L. Austin" <glenn at austin-home dot com>
Date: Mon, 30 Jul 2007 07:11:11 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <200707291834 dot 46435 dot rb at flippingdades dot com>
On Jul 29, 2007, at 4:34 PM, Don Jungk wrote:

> It appears that RB (2006r4) is drawing all text at the wrong size.  
> I'm using
> DrawString on canvases, but the same appears in StaticTexts and  
> EditFields.

I'll agree that fonts on Linux seem to be quite a bit larger than  
they do on Windows or Mac.  In fact, I've had to create a layout  
handler just to increase the size of certain controls on Linux so  
that they aren't chopped off -- but only for Linux.

> Text drawn at a text size of, say 48 point, should measure 48  
> points from the
> bottom of a descender to the top of an ascender.

Actually, it should be from the baseline to the top of the highest  
ascender...

> Not all type styles have the
> baseline at the same place between these two limits. It appears  
> that all the
> text draw by RB apps is coming out between 48 points and about 100  
> points,
> depending on the font. It is always 48 from the baseline to the top  
> of an
> ascender.

Which is correct...

> I noticed this because I'm working on a drawing program and I use a  
> canvas to
> display on the screen, while I write Postscript for printing. Type  
> sizes
> don't match. I thought maybe it's a "Linux thing", but other  
> programs that
> draw text (Pixel, TextMaker, Scribus) all draw it the "correct" way.

I'd actually say that *they* are incorrect, font sizes are not  
supposed to take into account any descenders.

> I call this the correct way because I worked as a typesetter and in  
> printing
> plants for more than 30 years and type size has never been measured  
> from the
> baseline.

It's been measured from baseline for 23 years on computers, and when  
*I* worked with typesetting, type height was always measured baseline- 
to-ascender.

-- 
Glenn L. Austin <><
Computer Wizard and Race Car Driver
<glenn at austin-home dot com>
<http://www.austin-home.com/glenn/>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


From  Mon 30 Jul 2007 08:12:01 -0600
Return-Path: <realbasic-nug-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id 82E5037E76A0; Mon, 30 Jul 2007 07:12:09 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on 
        www.realsoftware.com
X-Spam-Level: 
X-Spam-Status: No, score=-3.1 required=4.5 tests=ALL_TRUSTED,AWL,BAYES_00,
        NO_REAL_NAME autolearn=ham version=3.1.1
Received: from lists.realsoftware.com (m.realsoftware.com [66.116.103.65])
        by xmail.realsoftware.com (Postfix) with ESMTP id A827337E7696;
        Mon, 30 Jul 2007 07:12:08 -0700 (PDT)
Received: from real-software-mini.local (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP id 72E174E0B15;
        Mon, 30 Jul 2007 09:11:57 -0500 (CDT)
X-Original-To: realbasic-nug at lists dot realsoftware dot com
Delivered-To: realbasic-nug at lists dot realsoftware dot com
Received: from mail.verex.com (mail.verex.com [66.116.103.197])
        by lists.realsoftware.com (Postfix) with ESMTP id 7A7C44E0B0A
        for <realbasic-nug at lists dot realsoftware dot com>;
        Mon, 30 Jul 2007 09:11:53 -0500 (CDT)
Received: from [66.116.103.197] (localhost [127.0.0.1])
        by mail.verex.com (Postfix) with SMTP id 4C844795EE2
        for <realbasic-nug at lists dot realsoftware dot com>;
        Mon, 30 Jul 2007 08:12:01 -0600 (MDT)
Date: Mon, 30 Jul 2007 08:12:01 -0600
Subject: Re: 2007 r3 Color issue?
From: joe at strout dot net
To: realbasic-nug at lists dot realsoftware dot com
In-Reply-To: <C2D21D3F dot 96AF%sean at workinsoft dot com>
X-Mailer: VerEx Email Gateway
Message-Id: <20070730141201 dot 4C844795EE2 at mail dot verex dot com>
X-BeenThere: realbasic-nug at lists dot realsoftware dot com
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com

On Jul 29, 2007, at 15:32 UTC, Sean Arney wrote:

> I am having trouble in 2007 r3 with a function not accepting the same
> parameters it was under previous versions.  Can anyone lend a hand on
> whats going on here

Maybe, if you give us more information.  Are you getting an error
message, or what?

For what it's worth, I have lots of methods that take color parameters,
and they're working just fine in 2007 r3 for me.  I also tried a
declaration just like yours, and that worked for me too.

Best,
- Joe

--
Joe Strout -- joe at strout dot net
Strout Custom Solutions, LLC

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>