Re: RE : "can't open font" at startup

From: Martin Sevior (msevior@physics.unimelb.edu.au)
Date: Tue Jan 21 2003 - 15:31:26 EST

  • Next message: David Chart: "Commit: Changelogs"

    HI Robert,
             I think Dom tracked down the source of the this problem. You
    might have a Times*pcf (non-scalable) font. Try renaming the Times* pcf
    font to something else.

    Cheers

    Martin

    On 21 Jan 2003, Robert Staudinger wrote:

    > On Mon, 2003-01-20 at 21:23, Joaquin Cuenca Abela wrote:
    > > Marc wrote:
    > > > A quote I saved from #abiword:
    > > >
    > > >
    > > > <mhatta> would you check whether your /etc/fonts/fonts.conf
    > > > contains "<dir>/usr/X11R6/lib/X11/fonts</dir>"?
    > > > <hub> it does
    > > > <mhatta> hmm
    > > > <mhatta> on my box, abiword can't find fonts if fonts.conf
    > > > has that lin
    > > >
    > > >
    > > > Hope this helps. If not, then I'm clueless as usual
    > >
    > > It should be unrelated.
    > >
    > > The "DEBUG: Impossible to open font file..." mean almost always that the
    > > font is not scalable (.pf[ab] or .ttf). The example that Christian post
    > > (UTRG__12-ISO8859-1.pcf.gz) is a non-scalable font, so AbiWord rightly
    > > refuses to use this font (it will be unable to print with it, anyway).
    > >
    > > The slowness that Christian was suffering was because he was using the
    > > abiword version before my latest cvs commit. But he says that now there
    > > is no startup delay, but AbiWord is not able to use any font. I will
    > > take a look at its fonts.conf and its fonts to see where the problem
    > > comes from, but I'm almost sure that it's a configuration problem.
    > >
    > > Check with fc-list if fontconfig is able to find any scalable font. If
    > > it does, and this font doesn't show in AbiWord then there is a problem
    > > in our side.
    >
    > Hello,
    >
    > I'm seeing the same / a similar behaviour.
    > When starting abiword i get a big error message that a font could not be
    > loaded:
    >
    > AbiWord could not load the following font or fontset from the X Window
    > System display server:
    > [-*-Times New Roman-regular-r-*-*-*-0-*-*-*-*-*-*]
    > [...]
    >
    > but fc-list suggests it's there:
    >
    > [robert@mostpress robert]$ fc-list | grep -i times
    > Times:style=Bold Italic
    > Times New Roman:style=Bold Italic
    > Times New Roman:style=Bold
    > Times New Roman:style=Italic
    > Times:style=Bold
    > Times:style=Italic
    > Times New Roman:style=Regular
    > Times:style=Regular
    > [robert@mostpress robert]$
    >
    > There is also the startup log, don't know if it helps,
    >
    > Best Regards,
    > Robert
    >
    > [robert@mostpress robert]$ abiword
    > DEBUG: Build ID: unknown
    > DEBUG: Version: 1.1.2
    > DEBUG: Build Options:
    > DEBUG: Build Target:
    > DEBUG: Compile Date: Jan 21 2003
    > DEBUG: Compile Time: 18:48:14
    > DEBUG: SEVIOR: Building menus and toolbars
    > DEBUG: UnixApp: about to initialize
    > DEBUG: DEFAULT ToolbarAppearance |icon|icon|
    > DEBUG: DEFAULT UnixFontPath |fonts|fonts|
    > DEBUG: DEFAULT RemapGlyphsMasterSwitch |1|1|
    > DEBUG: DEFAULT RemapGlyphsNoMatterWhat |0|0|
    > DEBUG: DEFAULT RemapGlyphsDefault |&#x00B0;|°|
    > DEBUG: DEFAULT RemapGlyphsTable
    > |&#x2018;`&#x2019;'&#x201c;&quot;&#x201d;&quot;|‘`’'“&quot;”&quot;|
    > DEBUG: DEFAULT SmartQuotesEnable |0|0|
    > DEBUG: DEFAULT UseSuffix |1|1|
    > DEBUG: DEFAULT DefaultPageSize |Letter|Letter|
    > DEBUG: DEFAULT DefaultDirectionRtl |0|0|
    > DEBUG: DEFAULT UseContextGlyphs |1|1|
    > DEBUG: DEFAULT SaveContextGlyphs |0|0|
    > DEBUG: DEFAULT UseGlyphShapingForHebrew |0|0|
    > DEBUG: DEFAULT AutoSaveFile |0|0|
    > DEBUG: DEFAULT AutoSaveFilePeriod |5|5|
    > DEBUG: DEFAULT AutoSaveFileExt |.bak~|.bak~|
    > DEBUG: DEFAULT EmbedFontsInPs |1|1|
    > DEBUG: DEFAULT TransparentColor |ffffff|ffffff|
    > DEBUG: DEFAULT ColorShowPara |7f7f7f|7f7f7f|
    > DEBUG: DEFAULT ColorSquiggle |ff0000|ff0000|
    > DEBUG: DEFAULT ColorMargin |7f7f7f|7f7f7f|
    > DEBUG: DEFAULT ColorSelBackground |c0c0c0|c0c0c0|
    > DEBUG: DEFAULT ColorFieldOffset |0c0c0c|0c0c0c|
    > DEBUG: DEFAULT ColorImage |0000ff|0000ff|
    > DEBUG: DEFAULT ColorHyperLink |0000ff|0000ff|
    > DEBUG: DEFAULT ColorHdrFtr |000000|000000|
    > DEBUG: DEFAULT ColorColumnLine |000000|000000|
    > DEBUG: DEFAULT ColorRevision1 |ab04fe|ab04fe|
    > DEBUG: DEFAULT ColorRevision2 |ab1477|ab1477|
    > DEBUG: DEFAULT ColorRevision3 |ff9708|ff9708|
    > DEBUG: DEFAULT ColorRevision4 |9eb345|9eb345|
    > DEBUG: DEFAULT ColorRevision5 |0fb305|0fb305|
    > DEBUG: DEFAULT ColorRevision6 |08b3f8|08b3f8|
    > DEBUG: DEFAULT ColorRevision7 |04cec3|04cec3|
    > DEBUG: DEFAULT ColorRevision8 |0485c3|0485c3|
    > DEBUG: DEFAULT ColorRevision9 |0712c3|0712c3|
    > DEBUG: DEFAULT ColorRevision10 |ff0000|ff0000|
    > DEBUG: DEFAULT DocumentLocale |en-US|en-US|
    > DEBUG: DEFAULT AllowCustomToolbars |1|1|
    > DEBUG: DEFAULT AutoLoadPlugins |1|1|
    > DEBUG: DEFAULT ZoomType |Width|Width|
    > DEBUG: DEFAULT DefaultSaveDirectory |||
    > DEBUG: DEFAULT ShowUnixFontWarning |1|1|
    > DEBUG: DEFAULT ModifyUnixFontPath |1|1|
    > DEBUG: DEFAULT HTML_Export_Options
    > |?xml,xmlns:awml,+CSS|?xml,xmlns:awml,+CSS|
    > DEBUG: DEFAULT CloseOnLastDoc |0|0|
    > DEBUG: DEFAULT DefaultSaveFormat |.abw|.abw|
    > DEBUG: DEFAULT CursorBlink |1|1|
    > DEBUG: DEFAULT AutoSpellCheck |1|1|
    > DEBUG: DEFAULT SpellCheckCaps |1|1|
    > DEBUG: DEFAULT SpellCheckNumbers |1|1|
    > DEBUG: DEFAULT SpellCheckInternet |1|1|
    > DEBUG: DEFAULT SpellCheckIgnoredWordsSave |1|1|
    > DEBUG: DEFAULT SpellCheckIgnoredWordsLoad |1|1|
    > DEBUG: DEFAULT SpellAutoReplace |0|0|
    > DEBUG: DEFAULT OptionsTabNumber |0|0|
    > DEBUG: DEFAULT RulerUnits |in|in|
    > DEBUG: DEFAULT RulerVisible |1|1|
    > DEBUG: DEFAULT StandardBarVisible |1|1|
    > DEBUG: DEFAULT FormatBarVisible |1|1|
    > DEBUG: DEFAULT ExtraBarVisible |0|0|
    > DEBUG: DEFAULT TableBarVisible |0|0|
    > DEBUG: DEFAULT StatusBarVisible |1|1|
    > DEBUG: DEFAULT ParaVisible |0|0|
    > DEBUG: DEFAULT StringSet |en-US|en-US|
    > DEBUG: DEFAULT KeyBindings |default|default|
    > DEBUG: DEFAULT KeyBindingsCycle |0|0|
    > DEBUG: DEFAULT InsertMode |1|1|
    > DEBUG: DEFAULT InsertModeToggle |1|1|
    > DEBUG: DEFAULT MenuLayouts |Main|Main|
    > DEBUG: DEFAULT ToolbarLayouts |FileEditOps FormatOps TableOps
    > ExtraOps|FileEditOps FormatOps TableOps ExtraOps|
    > DEBUG: DEFAULT layoutMode |1|1|
    > DEBUG: DEFAULT AlwaysPromptEncoding |0|0|
    > DEBUG: DEFAULT SpellCheckDirectory |dictionary|dictionary|
    > DEBUG: DEFAULT StringSetDirectory |strings|strings|
    > DEBUG: DEFAULT ShowSplash |1|1|
    > DEBUG: DEFAULT DefaultDirectionRtl |0|0|
    > DEBUG: Building XAP_EncodingManager
    > DEBUG: This iconv supports UCS-2BE as "UCS-2BE"
    > DEBUG: This iconv supports UCS-2LE as "UCS-2LE"
    > DEBUG: This iconv supports UCS-4BE as "UCS-4BE"
    > DEBUG: This iconv supports UCS-4LE as "UCS-4LE"
    > DEBUG: using 'UCS-2BE' for UCS-2 internal
    > DEBUG: using 'UCS-4BE' for UCS-4 internal
    > DEBUG: EncodingManager reports the following:
    > NativeEncodingName is ISO-8859-1, LanguageISOName is en,
    > Native8BitEncodingName is ISO-8859-1,
    > LanguageISOTerritory is US, fallbackchar is '?'
    > TexPrologue follows:
    > ---8<--------------
    > --->8--------------
    > WinLanguageCode is 0x0409, WinCharsetCode is 0
    > cjk_locale 0, can_break_words 0, swap_utos 0, swap_stou 0
    > DEBUG: XAP_EncodingManager built
    > DEBUG: Could not open file
    > /opt/garnome-0.20.0/share/AbiSuite-2.0/AbiWord/system.profile-ISO-8859-1
    > DEBUG: Problem reading (System Default Preferences) document
    > DEBUG: Could not open file
    > /opt/garnome-0.20.0/share/AbiSuite-2.0/AbiWord/system.profile-en-US.ISO-8859-1
    > DEBUG: Problem reading (System Default Preferences) document
    > DEBUG: Preferences::setCurrentScheme [_builtin_].
    > DEBUG: Prefs: Using LOCALE info from environment [en-US]
    > DEBUG: Found preferences for application [AbiWord] (this is [AbiWord]).
    > DEBUG: Reserved scheme name [_builtin_] found in file; ignoring.
    > DEBUG: Found Preferences scheme [_custom_].
    > DEBUG: Preferences::setCurrentScheme [_custom_].
    > DEBUG: Loading Fonts
    > DEBUG: Scavange Fonts started
    > DEBUG: XDisplay [:0.0], current X font path count 12, AW path count 1,
    > subdircount 5
    > DEBUG: found non-directory entry in existing fontpath [unix/:7100]
    > DEBUG: File says 68 fonts should follow...
    > DEBUG: Read 68 fonts from directory
    > [/opt/garnome-0.20.0/share/AbiSuite-2.0/fonts/].
    > DEBUG: Cannot open
    > [/opt/garnome-0.20.0/share/AbiSuite-2.0/fonts/en/fonts.dir] to read
    > fonts list.
    > DEBUG: Cannot open
    > [/opt/garnome-0.20.0/share/AbiSuite-2.0/fonts/ISO-8859-1/fonts.dir] to
    > read fonts list.
    > DEBUG: Cannot open
    > [/opt/garnome-0.20.0/share/AbiSuite-2.0/fonts/en-US/fonts.dir] to read
    > fonts list.
    > DEBUG: Cannot open
    > [/opt/garnome-0.20.0/share/AbiSuite-2.0/fonts/en-US.ISO-8859-1/fonts.dir] to read fonts list.
    > DEBUG: Scavange Fonts finished
    > DEBUG: Fonts Loaded
    > DEBUG: CreateMenuLabelSet: szLanguage_ en-US, szLanguage en-US
    > DEBUG: DOM: found -1 plugins in
    > /opt/garnome-0.20.0/share/AbiSuite-2.0/AbiWord/plugins/
    > DEBUG: DOM: found -1 plugins in /home/robert/.AbiSuite/AbiWord/plugins/
    > DEBUG: RemapGlyphsTable[0] 0x2018 -> 0x0060
    > DEBUG: RemapGlyphsTable[1] 0x2019 -> 0x0027
    > DEBUG: RemapGlyphsTable[2] 0x201c -> 0x0026
    > DEBUG: RemapGlyphsTable[3] 0x0071 -> 0x0075
    > DEBUG: RemapGlyphsTable[4] 0x006f -> 0x0074
    > DEBUG: RemapGlyphsTable[5] 0x003b -> 0x201d
    > DEBUG: RemapGlyphsTable[6] 0x0026 -> 0x0071
    > DEBUG: RemapGlyphsTable[7] 0x0075 -> 0x006f
    > DEBUG: RemapGlyphsTable[8] 0x0074 -> 0x003b
    > DEBUG: AP_UnixFrame::initialize!!!!
    > DEBUG: AP_UnixFrame:: Initializing base classes!!!!
    > DEBUG: AP_UnixFrame:: Creating Toplevel Window!!!!
    > DEBUG: xap_UnixFrameImpl: app-width=988, app-height=743
    > DEBUG: xap_UnixFrameImpl: user-width=0, user-height=0
    > DEBUG: xap_UnixFrameImpl: pref-width=988, pref-height=743
    > DEBUG: xap_UnixFrameImpl: user-x=0, user-y=0
    > DEBUG: CreateMenuLabelSet: szLanguage_ en-US, szLanguage en-US
    > DEBUG: abi-table icon loaded 1087ef30 !
    > DEBUG: SEVIOR: Made insert table widget
    > DEBUG: SEVIOR: Made connected to callback
    > DEBUG: AP_UnixFrame::toggleBar 0, 1
    > DEBUG: AP_UnixFrame::toggleBar 1, 1
    > DEBUG: AP_UnixFrame::toggleBar 2, 0
    > DEBUG: AP_UnixFrame::toggleBar 3, 0
    > DEBUG: AP_UnixFrame::toggleStatusBar 1
    > DEBUG: DOM: trying to load (NULL) (0, 0)
    > DEBUG: Could not open file /home/robert/.AbiSuite/templates/normal.awt
    > DEBUG: Problem reading document
    > DEBUG: PD_Document::importFile -- could not import file
    > DEBUG: pd_Document::setAttrProp: setting dom-dir to ltr
    > DEBUG: pd_Document::setAttrProp: setting lang to en-US
    > DEBUG: FL_DocLayout::_toggleAutoSmartQuotes(false)
    > DEBUG: SEVIOR: Doing Populate Section in DocListener
    > DEBUG: fl_DocListener::populateStrux for '(null)'
    > DEBUG: SEVIOR: Doing Populate DocSection in DocListener
    > DEBUG: column order: ltr
    > DEBUG: Loading gdkfont [-ZZ_AbiWord-Times New
    > Roman-regular-r-normal-*-16-0-0-0-p-0-iso8859-1]
    > DEBUG: Failed to load gdkfont.
    > DEBUG: Loading gdkfont instead [-*-Times New
    > Roman-regular-r-*-*-*-0-*-*-*-*-*-*]
    > DEBUG: Failed to load backup font.
    > DEBUG: fv_View:: Focus change focus = 1 selection 1
    > DEBUG: fv_View:: Focus change focus = 2 selection 1
    > DEBUG: fv_View:: Focus change focus = 1 selection 1
    > DEBUG: fv_View:: Focus change focus = 2 selection 1
    > DEBUG: Loading gdkfont [-ZZ_AbiWord-Times New
    > Roman-regular-r-normal-*-16-0-0-0-p-0-iso8859-1]
    > DEBUG: Failed to load gdkfont.
    > DEBUG: Loading gdkfont instead [-*-Times New
    > Roman-regular-r-*-*-*-0-*-*-*-*-*-*]
    > DEBUG: Failed to load backup font.
    > /opt/garnome-0.20.0/bin/abiword: line 28: 10383 Aborted
    > $ABISUITE_LIBEXEC/AbiWord_d "$@"
    > [robert@mostpress robert]$
    >
    >



    This archive was generated by hypermail 2.1.4 : Tue Jan 21 2003 - 15:34:53 EST