Skip to content

Commit

Permalink
List all fontconfig cache dirs.
Browse files Browse the repository at this point in the history
  • Loading branch information
saurtron committed Nov 17, 2024
1 parent a83eab8 commit db80ad8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rts/Rendering/Fonts/CFontTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@ class FtLibraryHandler {
{
auto dirs = FcConfigGetCacheDirs(GetFCConfig());
FcStrListFirst(dirs);
for (FcChar8* dir = FcStrListNext(dirs), *prevDir = nullptr; dir != nullptr && dir != prevDir; ) {
prevDir = dir;
for (FcChar8* dir = FcStrListNext(dirs); dir != nullptr; dir = FcStrListNext(dirs)) {
LOG_MSG("[%s] Using Fontconfig cache dir \"%s\"", false, __func__, dir);
}
FcStrListDone(dirs);
Expand Down

0 comments on commit db80ad8

Please sign in to comment.