Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
This commit is contained in:
parent
2d82a4c195
commit
d507808e40
|
@ -9,6 +9,12 @@ namespace Dino {
|
||||||
void main(string[] args) {
|
void main(string[] args) {
|
||||||
|
|
||||||
try{
|
try{
|
||||||
|
#if _WIN32
|
||||||
|
var pangocairoResult = Environment.set_variable("PANGOCAIRO_BACKEND", "fontconfig", false);
|
||||||
|
if (!pangocairoResult) {
|
||||||
|
warning("Unable to set PANGOCAIRO_BACKEND environment variable to fontconfig");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
string? exec_path = args.length > 0 ? args[0] : null;
|
string? exec_path = args.length > 0 ? args[0] : null;
|
||||||
SearchPathGenerator search_path_generator = new SearchPathGenerator(exec_path);
|
SearchPathGenerator search_path_generator = new SearchPathGenerator(exec_path);
|
||||||
Intl.textdomain(GETTEXT_PACKAGE);
|
Intl.textdomain(GETTEXT_PACKAGE);
|
||||||
|
|
Loading…
Reference in a new issue