forked from mean00/avidemux2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[osx] Set fontconfig so that libass works
- Loading branch information
mean
committed
Nov 21, 2016
1 parent
5fcb69b
commit 27dabbe
Showing
3 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/bin/sh | ||
DIR=`dirname $0` | ||
export FONTCONFIG_FILE=$DIR/../Resources/fonts | ||
cd $DIR/../Resources/bin/ && ./avidemux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | ||
<!-- /etc/fonts/fonts.conf file to configure system font access --> | ||
<fontconfig> | ||
|
||
<!-- | ||
DO NOT EDIT THIS FILE. | ||
IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED. | ||
LOCAL CHANGES BELONG IN 'local.conf'. | ||
The intent of this standard configuration file is to be adequate for | ||
most environments. If you have a reasonably normal environment and | ||
have found problems with this configuration, they are probably | ||
things that others will also want fixed. Please submit any | ||
problems to the fontconfig bugzilla system located at fontconfig.org | ||
Note that the normal 'make install' procedure for fontconfig is to | ||
replace any existing fonts.conf file with the new version. Place | ||
any local customizations in local.conf which this file references. | ||
Keith Packard | ||
--> | ||
|
||
<!-- Font directory list --> | ||
|
||
<dir>/usr/share/fonts</dir> | ||
<dir>/usr/X11/lib/X11/fonts</dir> <dir>/opt/local/share/fonts</dir> <dir>/Library/Fonts</dir> <dir>/Network/Library/Fonts</dir> <dir>/System/Library/Fonts</dir> | ||
<dir prefix="xdg">fonts</dir> | ||
<!-- the following element will be removed in the future --> | ||
<dir>~/.fonts</dir> | ||
|
||
<!-- | ||
Accept deprecated 'mono' alias, replacing it with 'monospace' | ||
--> | ||
<match target="pattern"> | ||
<test qual="any" name="family"> | ||
<string>mono</string> | ||
</test> | ||
<edit name="family" mode="assign" binding="same"> | ||
<string>monospace</string> | ||
</edit> | ||
</match> | ||
|
||
<!-- | ||
Accept alternate 'sans serif' spelling, replacing it with 'sans-serif' | ||
--> | ||
<match target="pattern"> | ||
<test qual="any" name="family"> | ||
<string>sans serif</string> | ||
</test> | ||
<edit name="family" mode="assign" binding="same"> | ||
<string>sans-serif</string> | ||
</edit> | ||
</match> | ||
|
||
<!-- | ||
Accept deprecated 'sans' alias, replacing it with 'sans-serif' | ||
--> | ||
<match target="pattern"> | ||
<test qual="any" name="family"> | ||
<string>sans</string> | ||
</test> | ||
<edit name="family" mode="assign" binding="same"> | ||
<string>sans-serif</string> | ||
</edit> | ||
</match> | ||
|
||
<!-- | ||
Load local system customization file | ||
--> | ||
<include ignore_missing="yes">conf.d</include> | ||
|
||
<!-- Font cache directory list --> | ||
|
||
<cachedir>/opt/local/var/cache/fontconfig</cachedir> | ||
<cachedir prefix="xdg">fontconfig</cachedir> | ||
<!-- the following element will be removed in the future --> | ||
<cachedir>~/.fontconfig</cachedir> | ||
|
||
<config> | ||
<!-- | ||
Rescan configuration every 30 seconds when FcFontSetList is called | ||
--> | ||
<rescan> | ||
<int>30</int> | ||
</rescan> | ||
</config> | ||
|
||
</fontconfig> |