RE: New text metric procedure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oh, something I noticed from using my new procedure: The string
metrics returned by gdk_string_extents() aren't always exactly the
same as the metrics of the bounding box returned from gimp-text.
Apparently gimp-text uses something like gdk_string_extents, but not
exactly the same.

So far all I have seen is an occasional small height difference, which
is easy to correct for progamatically, by comparing the height
returned from text-get-string-extents with the height of the floating
selection created by gimp-text, and translating the layer accordingly.

Of course, that's far from elegant, so I'll get off my butt this
weekend and look into why the numbers don't quite jive.

Nick Marden - nick@xxxxxxxxxx (New numbers - please note!)
(T) 781-455-0675 (C) 781-929-5279 (F) 781-455-6278
BEGIN:VCARD
VERSION:2.1
N:Marden;Nick
FN:Nick Marden
ORG:Mercurial Virtual Supply Chain, Inc.
TITLE:CTO
TEL;WORK;VOICE:781-455-0675
TEL;HOME;VOICE:781-453-9588
TEL;CELL;VOICE:781-929-5279
TEL;WORK;FAX:781-455-6278
TEL;HOME;FAX:781-455-6278
ADR;WORK:;;32 Mark Lee Road;Needham;MA;02494;US
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:32 Mark Lee Road=0D=0ANeedham, MA 02494=0D=0AUS
ADR;HOME:;;32 Mark Lee Road;Needham;MA;02494;US
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:32 Mark Lee Road=0D=0ANeedham, MA 02494=0D=0AUS
URL:http://www.marden.org
URL:http://www.bannerama.com
KEY;X509;ENCODING=BASE64:
    MIIEjDCCA/WgAwIBAgIQIA8kbG8E8qHY7QMokrSu6zANBgkqhkiG9w0BAQQFADCBzDEXMBUG
    A1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0IE5ldHdvcmsx
    RjBEBgNVBAsTPXd3dy52ZXJpc2lnbi5jb20vcmVwb3NpdG9yeS9SUEEgSW5jb3JwLiBCeSBS
    ZWYuLExJQUIuTFREKGMpOTgxSDBGBgNVBAMTP1ZlcmlTaWduIENsYXNzIDEgQ0EgSW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wwKjAooCagJIYiaHR0cDovL2NybC52ZXJpc2lnbi5jb20vY2xhc3MxLmNybDANBgkq
    hkiG9w0BAQQFAAOBgQANCITZBRQzBQuY79uGvFVlJ+kuOu8Y9zmj5GDhIVZ2NstV5Vf3LOYI
    0n9jCzELM/e7bjUvpElm2EROXgypTAjZfzJ/bVCa9k38Y9pr5Yec1Kz33w8gS9RNoSqqw6AM
    bRVYuIEcDuqckzaDcFzbWAbgvPTzt/uhMdyhUUpF7RmpQo==


EMAIL;PREF;INTERNET:nick@xxxxxxxxxx
REV:20000706T032957Z
END:VCARD

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux