bugGnash - The GNU Flash player - Bugs: bug #22463, text rendered at wrong size


bug #22463: text rendered at wrong size

Submitted by:  Sandro Santilli <strk>
Submitted on:  Mon 03 Mar 2008 12:21:54 PM UTC  
Category:  None Severity:  3 - Normal
Release:  None Status:  Fixed
Privacy:  Public Assigned to:  Benjamin Wolsey <bwy>
Open/Closed:  Closed

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


( Jump to the original submission)

Wed 08 Jul 2009 04:11:08 PM UTC, comment #10:

I confirm size is good now (and width isn't)

Sandro Santilli <strk>
Project Member
Wed 08 Jul 2009 03:56:00 PM UTC, comment #9:

The size should be correct now. Device fonts are scaled in both directions using the y scale value.

The width of the textfield should be scaled according to the x scale, but that's not yet fixed (needs some changes to TextField.cpp).

The x position of some of the text is still slightly wrong in the two examples in comment #1, but I haven't worked out why. The test misc-ming.all/DeviceFontTest doesn't reproduce this problem.

Benjamin Wolsey <bwy>
Project MemberIn charge of this item.
Sun 09 Nov 2008 02:50:51 PM UTC, comment #8:

One problem is that we scale the font according using the TextField character's matrix. We shouldn't do this, at least for device fonts.

Benjamin Wolsey <bwy>
Project MemberIn charge of this item.
(Why is this post is considered to be spam? Users may have reported it to be spam or, if it has been recently posted, it may just be waiting for spamchecks to be run.)
Spam content:

//Not Viagra
[http://sleepingpillsdosage.blogspot.com/ Sleeping Pills Dosade]
[http://sleepingpillslist.blogspot.com/ Sleeping pills list]
[http://onlinesleepingpills.blogspot.com/ online sleeping pills]
[http://sleepingpils.blogspot.com/ sleeping pils]
[http://herbalsleepingpills.blogspot.com/ herbal sleeping pills]
[http://sleep-pills.blogspot.com/ sleep pills]
[http://zoloftpaxil.blogspot.com/ zoloft paxil]
[http://paxilside.blogspot.com/ paxil side effect]
[http://paxilanxiety.blogspot.com/ paxil anxiety]
[http://orderpaxil.blogspot.com/ order paxil]
[http://paxilonline.blogspot.com/ paxil online]
[http://paxildepression.blogspot.com/ paxil depression]
[http://cheappaxil.blogspot.com/ cheap paxil]
[http://genericambienusa.blogspot.com/ generic ambien usa]
[http://ambienmexicouk.blogspot.com/ ambien mexico co uk]
[http://ambiencanada.blogspot.com/ ambien canada]
[http://ambienusa.blogspot.com/ ambien usa]
[http://ambienpills.blogspot.com/ ambien pills]
[http://easyorderambien.blogspot.com/ easy order ambien]
[http://buyambien.blogspot.com/ buy ambien]
[http://purchaseambien.blogspot.com/ purchase ambien]

[http://vardenafillevitraonline.blogspot.com/ vardenafil levitra online]
[http://genericlevitraonline.blogspot.com/ generic levitra online]
[http://discountlevitraonline.blogspot.com/ discount levitra online]
[http://cheaplevitra-online.blogspot.com/ cheap levitra online]
[http://levitraonlineorder.blogspot.com/ levitra online order]
[http://order-viagra-online-2.blogspot.com/ order viagra online]
[http://acheter-viagra.blogspot.com/ acheter viagra]
[http://kaufen-viagra.blogspot.com/ kaufen viagra]
[http://comprare-viagra.blogspot.com/ comprare viagra]
[http://viagra-online-california.blogspot.com/ viagra online california]
[http://viagra-online-delaware.blogspot.com/ viagra online delaware]
[http://viagra-online-arkansas.blogspot.com/ viagra online arkansas]
[http://viagra-online-connecticut.blogspot.com/ viagra online connecticut]
[http://viagra-online-arizona.blogspot.com/ viagra online arizona]
[http://viagra-online-florida.blogspot.com/ viagra online florida]
[http://viagra-online-colorado.blogspot.com/ viagra online colorado]
[http://viagra-online-georgia.blogspot.com/ viagra online georgia]
[http://viagra-online-alaska.blogspot.com/ viagra online alaska]
[http://viagra-online-alabama.blogspot.com/ viagra online alabama]
[http://viagra-online-maryland.blogspot.com/ viagra online maryland]
[http://viagra-online-hawaii.blogspot.com/ viagra online hawaii]
[http://viagra-online-idaho.blogspot.com/ viagra online idaho]
[http://viagra-online-kentucky.blogspot.com/ viagra online kentucky]
[http://viagra-online-illinois.blogspot.com/ viagra online illinois]
[http://viagra-online-kansas.blogspot.com/ viagra online kansas]
[http://viagra-online-louisiana.blogspot.com/ viagra online louisiana]
[http://viagra-online-iowa.blogspot.com/ viagra online iowa]
[http://viagra-online-indiana.blogspot.com/ viagra online indiana]
[http://viagra-online-maine.blogspot.com/ viagra online maine]
[http://viagra-online-new-hampshire.blogspot.com/ viagra online new hampshire]
[http://viagra-online-new-jersey.blogspot.com/ viagra online new jersey]
[http://viagra-online-nevada.blogspot.com/ viagra online nevada]
[http://viagra-online-massachusetts.blogspot.com/ viagra online massachusetts]
[http://viagra-online-missouri.blogspot.com/ viagra online missouri]
[http://viagra-online-minnesota.blogspot.com/ viagra online minnesota]
[http://viagra-online-nebraska.blogspot.com/ viagra online nebraska]
[http://viagra-online-montana.blogspot.com/ viagra online montana]
[http://viagra-online-mississippi.blogspot.com/ viagra online mississippi]
[http://viagra-online-michigan.blogspot.com/ viagra online michigan]
[http://viagra-online-oklahoma.blogspot.com/ viagra online oklahoma]
[http://viagra-online-oregon.blogspot.com/ viagra online oregon]
[http://viagra-online-rhode-island.blogspot.com/ viagra online rhode island]
[http://viagra-online-ohio.blogspot.com/ viagra online ohio]
[http://viagra-online-pennsylvania.blogspot.com/ viagra online pennsylvania]
[http://viagra-online-north-dakota.blogspot.com/ viagra online north dakota]
[http://viagra-online-north-carolina.blogspot.com/ viagra online north carolina]
[http://viagra-online-south-carolina.blogspot.com/ viagra online south carolina]
[http://viagra-online-new-york.blogspot.com/ viagra online new york]
[http://viagra-online-new-mexico.blogspot.com/ viagra online new mexico]
[http://viagra-online-wyoming.blogspot.com/ viagra online wyoming]
[http://viagra-online-tennessee.blogspot.com/ viagra online tennessee]
[http://viagra-online-west-virginia.blogspot.com/ viagra online west virginia]
[http://viagra-online-utah.blogspot.com/ viagra online utah]
[http://viagra-online-virginia.blogspot.com/ viagra online virginia]
[http://viagra-online-texas.blogspot.com/ viagra online texas]
[http://viagra-online-vermont.blogspot.com/ viagra online vermont]
[http://viagra-online-wisconsin.blogspot.com/ viagra online wisconsin]
[http://viagra-online-washington.blogspot.com/ viagra online washington]
[http://viagra-online-south-dakota.blogspot.com/ viagra online south dakota]
Fri 14 Mar 2008 12:33:35 PM UTC, comment #7:

In gnash, device fonts create glyphs on demand.

Sandro Santilli <strk>
Project Member
Tue 11 Mar 2008 01:00:56 PM UTC, comment #6:

What am I doing? It does use those two device fonts; but the Arial font (ID: 8) has 49 glyphs, each with an associated shape. Is that normal for a device font?

Benjamin Wolsey <bwy>
Project MemberIn charge of this item.
Tue 11 Mar 2008 12:49:56 PM UTC, comment #5:

That should read "doesn't use device fonts".

Benjamin Wolsey <bwy>
Project MemberIn charge of this item.
Tue 11 Mar 2008 12:35:50 PM UTC, comment #4:

It does use device fonts: Arial and Symbol (this latter presumably just for the theta sign).

From debug log:

17810] 13:32:41: DEBUG: Advance value for glyph '4' is 284.5 (horiAdvance:569, scale:0.5)
17810] 13:33:58: DEBUG: Advance value for glyph '5' is 569.5 (horiAdvance:1139, scale:0.5)

Benjamin Wolsey <bwy>
Project MemberIn charge of this item.
Thu 06 Mar 2008 09:18:29 PM UTC, comment #3:

Looking at the code that macro only influences color, not size.
To be researched:

1. if the movies deal with device rather then embedded fonts.
2. if device fonts are supposed to be scaled.

Sandro Santilli <strk>
Project Member
Thu 06 Mar 2008 08:41:38 PM UTC, comment #2:

note to self (or to whoever wants to try that):
define in server/edit_text_character.cpp

Sandro Santilli <strk>
Project Member
Mon 03 Mar 2008 12:39:35 PM UTC, comment #1:

Another example of the same bug:

Sandro Santilli <strk>
Project Member
Mon 03 Mar 2008 12:21:54 PM UTC, original submission:

version: SWF6
md5: 92458afd64496f8089b843e81317b0c9

The dynamic text value of y0 and t? is disaplayed in a weird
way (bigger then expected, and with wrong aspect ratio).
Could be one of those cases in which an application relies on
the NON transformation of device fonts (didn't test if it's device font btw)

Sandro Santilli <strk>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by bjacques (Updated the item)
  • -email is unavailable- added by bwy (Posted a comment)
  • -email is unavailable- added by strk (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    Mon 08 Jul 2013 12:27:34 PM UTC bjacques StatusReady For Test => Fixed
        Assigned toNone => bwy
        Open/ClosedOpen => Closed
    Wed 08 Jul 2009 03:56:00 PM UTC bwy StatusConfirmed => Ready For Test
    Wed 17 Sep 2008 10:09:31 PM UTC strk StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.1-cleanup1