text: Do not clamp font size for SWF13+

This commit is contained in:
Kamil Jarosz 2024-06-29 00:36:05 +02:00 committed by Nathan Adams
parent fd051c1b34
commit 19649cc69b
1 changed files with 7 additions and 1 deletions

View File

@ -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 {