mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Specialize font paths for preinstalled font selection instead
This commit is contained in:
@@ -201,8 +201,10 @@ int toolMain(int argc, const char **argv)
|
||||
int variation = fontFamily->GetVariationForFlags(flags);
|
||||
|
||||
PortabilityLayer::FontHacks hacks;
|
||||
PortabilityLayer::VirtualDirectory_t vDir;
|
||||
const char *path = nullptr;
|
||||
fontFamily->GetFontSpec(variation, hacks, path);
|
||||
int typeFaceIndex = 0;
|
||||
fontFamily->GetFontSpec(variation, hacks, vDir, path, typeFaceIndex);
|
||||
|
||||
KnownFontSpec spec(path, size, aa, hacks);
|
||||
|
||||
@@ -218,7 +220,7 @@ int toolMain(int argc, const char **argv)
|
||||
{
|
||||
PortabilityLayer::CFileStream stream(fontFile);
|
||||
|
||||
IGpFont *font = ft2Handler->LoadFont(&stream);
|
||||
IGpFont *font = ft2Handler->LoadFont(&stream, typeFaceIndex);
|
||||
if (!ft2Handler->KeepStreamOpen())
|
||||
stream.Close();
|
||||
|
||||
|
Reference in New Issue
Block a user