Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text misplaced in Ruffle #9645

Open
ousia opened this issue Feb 19, 2023 · 3 comments
Open

text misplaced in Ruffle #9645

ousia opened this issue Feb 19, 2023 · 3 comments
Labels
bug Something isn't working text Issues relating to text rendering/input

Comments

@ousia
Copy link
Contributor

ousia commented Feb 19, 2023

Describe the bug

Player Info

Allows script access: true
Renderer: WebGL
Player type: Object
SWF URL: https://mep-col.sesamath.net/dev/swf/exo240.swf
Param menu: false
Param wmode: window
Param allowScriptAccess: always
Param base: https://mep-col.sesamath.net/dev/swf/
Param flashvars: idMep=240&modeleMep=1&abreviationLangue=fr&idSwf=240&ch=n&idAide=221
Attribute 0: undefined
Attribute 1: undefined
Attribute 2: undefined
Attribute 3: undefined
Attribute 4: undefined
Attribute 5: undefined
Attribute 6: undefined

Page Info

Page URL: https://bibliotheque.sesamath.net/public/voir/239
SWF URL: https://mep-col.sesamath.net/dev/swf/exo240.swf

Browser Info

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0
Platform: Linux x86_64
Has touch support: false

Ruffle Info

Version: 0.1.0
Name: nightly 2022-12-07
Channel: nightly
Built: 2022-12-07T00:18:07.185Z
Commit: 2bb4e2e
Is extension: true

Metadata

width: 735
height: 450
frameRate: 12
numFrames: 4
swfVersion: 6
backgroundColor: #FFFFFF
isActionScript3: false
uncompressedLength: 324496

Expected behavior

What I get from latest Ruffle (2023-02-19) Linux binary:

misplaced-ruffle-fs8

What Adobe Flash Projector 32 displays:

flash-placed-fs8

Affected platform

Desktop app

Operating system

Fedora Linux 37

Browser

Mozilla Firefox 110

Additional information

No response

@ousia ousia added the bug Something isn't working label Feb 19, 2023
@ousia
Copy link
Contributor Author

ousia commented Feb 19, 2023

Sorry, but just in a hurry.

This is what Lighspark outputs, so HTML might be the cause:

ls-mispla-fs8

@adrian17
Copy link
Collaborator

I'm assuming this is about the subscript x_A, right?
This is a tough one - the SWF manually placed the subscript A in a particular point, which doesn't match Ruffle's position of "x" because we simply have a slightly different font-text layout calculation :/ We'll need to get it perfectly pixel-correct in order for the "x" to land right next to the "A".

@adrian17 adrian17 added the text Issues relating to text rendering/input label Feb 19, 2023
@ousia
Copy link
Contributor Author

ousia commented Feb 20, 2023

@adrian17, many thanks for your reply.

Yes, I meant the misplaced A subscript.

I wonder whether using the same default font (once device fonts are implemented [#1862]) would be the relevant gain to consider this issue closed.

Many thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working text Issues relating to text rendering/input
Projects
None yet
Development

No branches or pull requests

2 participants