Subversion Repositories tpanel

Rev

Rev 192 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 192 Rev 197
Line 304... Line 304...
304
        font.faceIndex = 29;
304
        font.faceIndex = 29;
305
        font.size = 8;
305
        font.size = 8;
306
        mFonts.insert(pair<int, FONT_T>(font.number, font));
306
        mFonts.insert(pair<int, FONT_T>(font.number, font));
307
    }
307
    }
308
 
308
 
-
 
309
    // Now the fonts for setup pages
-
 
310
    systemFonts(true);
-
 
311
 
309
    // read the individual fonts from file
312
    // read the individual fonts from file
310
    TError::clear();
313
    TError::clear();
311
    string projectPath = TConfig::getProjectPath();
314
    string projectPath = TConfig::getProjectPath();
312
 
-
 
313
    if (!fs::exists(projectPath + "/prj.xma"))
-
 
314
        projectPath += "/__system";
-
 
315
 
-
 
316
    string path = makeFileName(projectPath, "fnt.xma");
315
    string path = makeFileName(projectPath, "fnt.xma");
317
 
316
 
318
    if (!isValidFile())
317
    if (!isValidFile())
319
    {
318
    {
320
        MSG_ERROR("File " << path << " doesn't exist or is not readable!");
319
        MSG_ERROR("File " << path << " doesn't exist or is not readable!");
Line 395... Line 394...
395
    }
394
    }
396
 
395
 
397
    mutex_font.unlock();
396
    mutex_font.unlock();
398
}
397
}
399
 
398
 
400
bool TFont::systemFonts()
399
bool TFont::systemFonts(bool setup)
401
{
400
{
402
    DECL_TRACER("TFont::systemFonts()");
401
    DECL_TRACER("TFont::systemFonts(bool setup)");
-
 
402
 
-
 
403
    string path;
403
 
404
 
-
 
405
    if (setup)
-
 
406
        path = makeFileName(TConfig::getSystemProjectPath(), "/fnt.xma");
-
 
407
    else
404
    string path = makeFileName(TConfig::getProjectPath(), "__system/graphics/fnt.xma");
408
        path = makeFileName(TConfig::getSystemProjectPath(), "/graphics/fnt.xma");
405
 
409
 
406
    if (!isValidFile())
410
    if (!isValidFile())
407
    {
411
    {
408
        MSG_ERROR("File " << path << " doesn't exist or is not readable!");
412
        MSG_ERROR("File " << path << " doesn't exist or is not readable!");
409
        TError::setError();
413
        TError::setError();