| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
This uses a faux rendering with a high-level interface of DirectWrite
to determine a suitable fallback. Choices are different from GDI,
but reasonable.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
Fix that a single broken font could mess up the entire font scanning.
|
| |
|
|
|
|
| |
This is required for proper font matching.
|
| |
|
|
|
|
|
| |
Extract a function to set up FontFileStream and store it in a newly
introduced private struct. Fix memory management as well.
|
|
Incomplete, leaks memory, but capable of rendering something.
|