pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

font dependency with security/KeePass-2.23, lang/mono-2.10.9nb3, graphics/libgdiplus-2.10nb12 ?



Hello,

I tried to install security/KeePass-2.23nb1 (using lang/mono-2.10.9nb3
and graphics/libgdiplus-2.10nb12) on a Linux system.

On the linux machine, I have X windows running (xfce4) and there are
quite a few fonts installed, even the free MS truetype fonts.

As long as I do not also install some fonts from pkgsrc, starting up
KeePass fails with the following message, indicating it is looking for
some SansSerif font:

Unhandled Exception: System.TypeInitializationException: An exception was 
thrown by the type initializer for System.Windows.Forms.ThemeEngine ---> 
System.ArgumentException: The requested FontFamily could not be found [GDI+ 
status: FontFamilyNotFound]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in <filename 
unknown>:0 
  at System.Drawing.FontFamily..ctor (GenericFontFamilies genericFamily) 
[0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily:.ctor 
(System.Drawing.Text.GenericFontFamilies)
  at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in <filename 
unknown>:0 
  at System.Drawing.Font.CreateFont (System.String familyName, Single emSize, 
FontStyle style, GraphicsUnit unit, Byte charSet, Boolean isVertical) [0x00000] 
in <filename unknown>:0 
  at System.Drawing.Font..ctor (System.String familyName, Single emSize, 
FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont) 
[0x00000] in <filename unknown>:0 
  at System.Drawing.Font..ctor (System.String familyName, Single emSize, 
System.String systemName) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor 
(string,single,string)
  at System.Drawing.SystemFonts.get_DefaultFont () [0x00000] in <filename 
unknown>:0 
  at System.Windows.Forms.Theme..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ThemeWin32Classic..ctor () [0x00000] in <filename 
unknown>:0 
  at System.Windows.Forms.ThemeVisualStyles..ctor () [0x00000] in <filename 
unknown>:0 
  at System.Windows.Forms.ThemeEngine..cctor () [0x00000] in <filename 
unknown>:0 
  --- End of inner exception stack trace ---
  at System.Windows.Forms.X11DesktopColors..cctor () [0x00000] in <filename 
unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An 
exception was thrown by the type initializer for 
System.Windows.Forms.ThemeEngine ---> System.ArgumentException: The requested 
FontFamily could not be found [GDI+ status: FontFamilyNotFound]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in <filename 
unknown>:0 
  at System.Drawing.FontFamily..ctor (GenericFontFamilies genericFamily) 
[0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily:.ctor 
(System.Drawing.Text.GenericFontFamilies)
  at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in <filename 
unknown>:0 
  at System.Drawing.Font.CreateFont (System.String familyName, Single emSize, 
FontStyle style, GraphicsUnit unit, Byte charSet, Boolean isVertical) [0x00000] 
in <filename unknown>:0 
  at System.Drawing.Font..ctor (System.String familyName, Single emSize, 
FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont) 
[0x00000] in <filename unknown>:0 
  at System.Drawing.Font..ctor (System.String familyName, Single emSize, 
System.String systemName) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor 
(string,single,string)
  at System.Drawing.SystemFonts.get_DefaultFont () [0x00000] in <filename 
unknown>:0 
  at System.Windows.Forms.Theme..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ThemeWin32Classic..ctor () [0x00000] in <filename 
unknown>:0 
  at System.Windows.Forms.ThemeVisualStyles..ctor () [0x00000] in <filename 
unknown>:0 
  at System.Windows.Forms.ThemeEngine..cctor () [0x00000] in <filename 
unknown>:0 
  --- End of inner exception stack trace ---
  at System.Windows.Forms.X11DesktopColors..cctor () [0x00000] in <filename 
unknown>:0 


Actually it took me quite a while to realize that it might need a font
from pkgsrc instead of the linux installation. Googling showed mainly
answers that said "oh it works for me under KDE/Gnome/..., maybe you
should switch".

KeePass runs find after installing e.g. fonts/dejavu-ttf or
fonts/ms-ttf.

I don't know if there is any mechanism to indicate font dependencies,
but some hint in the MESSAGE file of either KeePass, mono or libgdiplus
might be nice.

Or am I simply missing a way how to configure pkgsrc packages to use the
system fonts?

Regards
Matthias Ferdinand


Home | Main Index | Thread Index | Old Index