text: Do not clamp font size for SWF13+
This commit is contained in:
parent
fd051c1b34
commit
19649cc69b
|
@ -763,7 +763,13 @@ impl FormatSpans {
|
|||
Some(b'-') => format.size.map(|last_size| last_size - size),
|
||||
_ => Some(size),
|
||||
})
|
||||
.map(|size| size.clamp(1.0, 127.0))
|
||||
.map(|size| {
|
||||
if swf_version < 13 {
|
||||
size.clamp(1.0, 127.0)
|
||||
} else {
|
||||
size.max(1.0)
|
||||
}
|
||||
})
|
||||
{
|
||||
format.size = Some(size);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue