-Subproject commit 9103ec71e245dd3002a3c1190ee1acb4f1c8bcba
+Subproject commit e0b1b010275d55a264c98de930e2750680ae148e
-Subproject commit e9e1fb251df4be19b142f0cef2c7dcc13b84f2f2
+Subproject commit 7e70a4e9236104c350e7d9ca3505225755065569
public PrivateFontCollection ()
{
- Status status = GDIPlus.GdipNewPrivateFontCollection (out nativeFontCollection);
+ Status status = GDIPlus.GdipNewPrivateFontCollection (out _nativeFontCollection);
GDIPlus.CheckStatus (status);
}
throw new FileNotFoundException ();
// note: MS throw the same exception FileNotFoundException if the file exists but isn't a valid font file
- Status status = GDIPlus.GdipPrivateAddFontFile (nativeFontCollection, fname);
+ Status status = GDIPlus.GdipPrivateAddFontFile (_nativeFontCollection, fname);
GDIPlus.CheckStatus (status);
}
public void AddMemoryFont (IntPtr memory, int length)
{
// note: MS throw FileNotFoundException if something is bad with the data (except for a null pointer)
- Status status = GDIPlus.GdipPrivateAddMemoryFont (nativeFontCollection, memory, length);
+ Status status = GDIPlus.GdipPrivateAddMemoryFont (_nativeFontCollection, memory, length);
GDIPlus.CheckStatus (status);
}
// methods
protected override void Dispose (bool disposing)
{
- if (nativeFontCollection!=IntPtr.Zero) {
- GDIPlus.GdipDeletePrivateFontCollection (ref nativeFontCollection);
+ if (_nativeFontCollection!=IntPtr.Zero) {
+ GDIPlus.GdipDeletePrivateFontCollection (ref _nativeFontCollection);
// This must be zeroed out, otherwise our base will also call
// the GDI+ delete method on unix platforms. We're keeping the
// base.Dispose() call in case other cleanup ever gets added there
- nativeFontCollection = IntPtr.Zero;
+ _nativeFontCollection = IntPtr.Zero;
}
base.Dispose (disposing);
../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Imaging/WmfPlaceableFileHeader.cs
../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/Duplex.cs
../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/InvalidPrinterException.cs
+../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/InvalidPrinterException.Serializable.cs
System.Drawing.Printing/MarginsConverter.cs
../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/Margins.cs
+../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/Margins.Serializable.cs
System.Drawing.Printing/PrintingServices.cs
System.Drawing.Printing/PrintingServicesWin32.cs
System.Drawing.Printing/PrintingServicesUnix.cs
System.Drawing.Printing/PageSettings.cs
../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/PaperKinds.cs
../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/PaperSize.cs
+../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/PaperSize.Serializable.cs
../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/PaperSource.cs
+../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/PaperSource.Serializable.cs
../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/PaperSourceKind.cs
../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/PreviewPageInfo.cs
System.Drawing.Printing/PreviewPrintController.cs
System.Drawing.Printing/PrintController.cs
System.Drawing.Printing/PrintDocument.cs
../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/PrinterResolution.cs
+../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/PrinterResolution.Serializable.cs
../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/PrinterResolutionKind.cs
System.Drawing.Printing/PrinterSettings.cs
../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/Printing/PrinterUnit.cs
public FontFamily (string name, FontCollection fontCollection)
{
- IntPtr handle = (fontCollection == null) ? IntPtr.Zero : fontCollection.nativeFontCollection;
+ IntPtr handle = (fontCollection == null) ? IntPtr.Zero : fontCollection._nativeFontCollection;
Status status = GDIPlus.GdipCreateFontFamilyFromName (name, handle, out nativeFontFamily);
GDIPlus.CheckStatus (status);
}