Blog Home  Home Feed your aggregator (RSS 2.0)  
Peter Nowaks Mobile Blog - PInvoke
Mobility on the Run
 
 Tuesday, July 03, 2007

Sind Sie schon mal in die missliche Lage gekommen, daß Ihnen eine Schriftart unter Windows Mobile und somit auch in Ihrer Anwendung fehlt?

Mit ein wenig P/Invoke lässt sich dies schnell beheben:

[DllImport("coredll.dll", SetLastError = true)]
public static extern int AddFontResource(string lpName);

Rufen Sie in Ihrer Anwendung nur noch die Methode AddFontResource(@"\pfad\" + fontdateiname); auf, und schon können Sie die Schriftart in ihrer Anwendung verwenden.

Quelle: http://fabdecret.blogspot.com/2007/07/install-unicode-fonts.html

Tuesday, July 03, 2007 2:09:11 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [2]   .NET Compact Framework | P/Invoke | Windows Mobile  |  Trackback
Copyright © 2008 Peter Nowak. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.