Font display using FlashPlayer fix - correct rect

This commit is contained in:
Jindra Petřík
2014-11-17 14:29:51 +01:00
parent bff3520bee
commit 4e8c813700
5 changed files with 58 additions and 13 deletions

View File

@@ -55,7 +55,7 @@ import java.util.Set;
*/
public abstract class FontTag extends CharacterTag implements AloneTag, DrawableTag {
protected final int previewSize = 500;
public static final int PREVIEWSIZE = 500;
public FontTag(SWF swf, int id, String name, ByteArrayRange data) {
super(swf, id, name, data);
@@ -316,7 +316,7 @@ public abstract class FontTag extends CharacterTag implements AloneTag, Drawable
@Override
public RECT getRect(Set<BoundedTag> added) {
return new RECT(0, (int) (previewSize * SWF.unitDivisor), 0, (int) (previewSize * SWF.unitDivisor));
return new RECT(0, (int) (PREVIEWSIZE * SWF.unitDivisor), 0, (int) (PREVIEWSIZE * SWF.unitDivisor));
}
@Override