summaryrefslogtreecommitdiffstats
path: root/libass/ass_directwrite.cpp
Commit message (Collapse)AuthorAgeFilesLines
* directwrite: dynamically load dwrite.dllwm42015-07-111-11/+53
|
* directwrite: compile only on Windowswm42015-07-111-4/+0
|
* directwrite: add font fallback callbackGrigori Goronzy2015-07-101-1/+231
| | | | | | This uses a faux rendering with a high-level interface of DirectWrite to determine a suitable fallback. Choices are different from GDI, but reasonable.
* directwrite: multiple improvements to font scanningGrigori Goronzy2015-07-101-29/+52
| | | | | | | | | | | | | | | | There were various issues with font scanning. This addresses the following: - Synthesized font faces (bold/oblique) were added to the list. Just skip those, this is handled internally by libass. - Use the win32 font family names, if available. Traditionally, Windows groups font families in a different way, so that the number of variants is small (<= 4). With this, Arial Narrow and Arial Black appear as a separate family, which is what we want. - Full names are not mandatory. Correctly handle the case that there are no full names. - Don't use the bogus LOCALE_NAME_MAX_LENGTH constant to determine the size of the name buffer. Names can be almost arbitrarily long. Handle names up to 256 characters correctly and truncate longer names.
* directwrite: fix indentationStephan Vedder2015-07-101-240/+275
|
* directwrite: add missing memory release in case of failureStephan Vedder2015-07-101-4/+24
|
* directwrite: release localizedStringsStephan Vedder2015-07-101-1/+5
|
* directwrite: fix error handling in font scanningStephan Vedder2015-07-101-8/+8
| | | | Fix that a single broken font could mess up the entire font scanning.
* directwrite: use standard mallocGrigori Goronzy2015-07-101-1/+1
|
* directwrite: add 'width' attributeGrigori Goronzy2015-07-101-0/+6
| | | | This is required for proper font matching.
* directwrite: wire up destroy callbacksGrigori Goronzy2015-07-101-3/+3
|
* directwrite: cache FontFileStreamGrigori Goronzy2015-07-101-36/+85
| | | | | Extract a function to set up FontFileStream and store it in a newly introduced private struct. Fix memory management as well.
* directwrite: add initial fontselect implementationfeliwir2015-07-101-0/+248
Incomplete, leaks memory, but capable of rendering something.