pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: font dependency with security/KeePass-2.23, lang/mono-2.10.9nb3, graphics/libgdiplus-2.10nb12 ?
From: Matthias Ferdinand
<mf+ml.pkgsrc-users%netzwerkagentursaarland.de@localhost>, Date: Tue, 8 Oct
2013 00:15:03 +0200
> 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?
Some other packages also requires a font.
Firefox, Thunderbird, and SeaMonkey etc.
But adding dependency to specific font package is bad idea, I feel.
--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
Home |
Main Index |
Thread Index |
Old Index