[vlc-devel] [PATCH] contrib: libass added fontconfig font search paths for OS X.
Naohiro KORIYAMA
nkoriyama at gmail.com
Wed Aug 29 18:05:45 CEST 2012
2012/8/30 Naohiro KORIYAMA <nkoriyama at gmail.com>:
> Hello,
>
> 2012/8/30 Rémi Denis-Courmont <remi at remlab.net>:
>> Hello,
>>
>> On Wednesday 29 August 2012, Naohiro KORIYAMA wrote:
>>> ++ FcConfigAppFontAddDir(priv->config, "~/Library/Fonts");
>>
>> Does that actually work? I'd expect tilde to be expanded (only) by shell, not
>> by fontconfig...
>
> In FcStrCopyFilename(), tilde is expanded (use getenv("HOME")). So, it works.
FcConfgAppFontAddDir() -> FcStrSetAddFilename() -> FcStrCopyFilename()
-> FcConfgHome()
--
KORIYAMA, Naohiro
nkoriyama at gmail.com
More information about the vlc-devel
mailing list