summaryrefslogtreecommitdiffstats
path: root/libass/ass_font.h
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2018-10-11 02:32:50 -0500
committerOleg Oshmyan <chortos@inbox.lv>2019-09-26 16:48:42 +0300
commite52fd88b3b52e3da2dba167f3fbadb8342c6da56 (patch)
tree095f00f6f1aa437a7b328a4fc4d262767d41f32e /libass/ass_font.h
parent2ed1760c88f348a72199aefd58ab3ff5ce06a35d (diff)
downloadlibass-e52fd88b3b52e3da2dba167f3fbadb8342c6da56.tar.bz2
libass-e52fd88b3b52e3da2dba167f3fbadb8342c6da56.tar.xz
coretext: fix reading weights of some fonts
Some fonts have weights that can be expressed more precisely as doubles than as floats. In these cases, when writing to a float, CFNumberGetValue will set the value to the closest approximation, but return false (so we'd just clobber whatever it set with 0). Easy fix: just store to a double instead.
Diffstat (limited to 'libass/ass_font.h')
0 files changed, 0 insertions, 0 deletions