DDD

Comment 3 for bug 959664

Revision history for this message
zzarko (zzarko-gmail) wrote :

The problem is in fonts.C, function string fallbackfont(DDDFont font). Replace existing function (line 160) with this one and compile:
----------------------------------------------------------------
static string fallbackfont(DDDFont font)
{
    switch (font)
    {
    case DefaultDDDFont:
  return "-*-helvetica-bold-r-*-*-*-120-*-*-*-*-*-*";
    case VariableWidthDDDFont:
  return "-*-helvetica-medium-r-*-*-*-120-*-*-*-*-*-*";
    case FixedWidthDDDFont:
    case DataDDDFont:
  return "-*-lucidatypewriter-medium-r-*-*-*-120-*-*-*-*-*-*";
    case SymbolDDDFont:
  return "-*-symbol-*-*-*-*-*-120-*-*-*-*-adobe-*";
    }

    assert(0);
    ::abort();
    return ""; // Never reached
}
----------------------------------------------------------------
Or, just replace "iso8859" in font string with "*". After this, DDD will use existing lucidatypewriter font and will not display any warnings about them.