Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
Initial commit of 189/194 version
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullahBell committed Nov 11, 2015
1 parent d4b49c3 commit 02b7906
Show file tree
Hide file tree
Showing 235 changed files with 91,136 additions and 0 deletions.
102 changes: 102 additions & 0 deletions Compat/Compat.cs
@@ -0,0 +1,102 @@
using System;
using System.IO;

namespace OTFontFile.Rasterizer
{
public class RasterInterf
{
public delegate void RastTestErrorDelegate (string sStringName, string sDetails);

public delegate void UpdateProgressDelegate (string s);

static public RasterInterf getInstance()
{
throw new NotImplementedException("UnImplemented OTFontFile.Rasterizer:getInstance");
}

public bool RastTest (int resX, int resY, int[] arrPointSizes,
float stretchX, float stretchY,
float rotation, float skew,
float[,] matrix,
bool unknown1, bool unknown2, bool unknown3, uint unknown4,
RastTestErrorDelegate pRastTestErrorDelegate,
UpdateProgressDelegate pUpdateProgressDelegate,
int numGlyphs)
{
throw new NotImplementedException("UnImplemented OTFontFile.Rasterizer:RastTest");
}

public DevMetricsData CalcDevMetrics (int Huge_calcHDMX, int Huge_calcLTSH, int Huge_calcVDMX,
ushort numGlyphs,
byte[] phdmxPointSizes, ushort maxHdmxPointSize,
byte uchPixelHeightRangeStart, byte uchPixelHeightRangeEnd,
ushort[] pVDMXxResolution, ushort[] pVDMXyResolution,
ushort cVDMXResolutions, UpdateProgressDelegate pUpdateProgressDelegate)
{
throw new NotImplementedException("UnImplemented OTFontFile.Rasterizer:CalcDevMetrics");
}

public ushort RasterNewSfnt (FileStream fontFileStream, uint faceIndex)
{
throw new NotImplementedException("UnImplemented OTFontFile.Rasterizer:RasterNewSfnt");
}

public void CancelRastTest ()
{
throw new NotImplementedException("UnImplemented OTFontFile.Rasterizer:CancelRastTest");
}

public void CancelCalcDevMetrics ()
{
throw new NotImplementedException("UnImplemented OTFontFile.Rasterizer:CancelCalcDevMetrics");
}

public int GetRastErrorCount ()
{
throw new NotImplementedException("UnImplemented OTFontFile.Rasterizer:GetRastErrorCount");
}

public class DevMetricsData
{
public HDMX hdmxData;
public LTSH ltshData;
public VDMX vdmxData;
}

// These structures largely have their OTSPEC meanings,
// except there is no need to store array lengths seperately
// as .NET arrays know their own lengths.

public class HDMX
{
public HDMX_DeviceRecord[] Records;
}

public class HDMX_DeviceRecord
{
public byte[] Widths;
}

public class LTSH
{
public byte[] yPels;
}

public class VDMX
{
public VDMX_Group[] groups;
}

public class VDMX_Group
{
public VDMX_Group_vTable[] entry;
}

public class VDMX_Group_vTable
{
public ushort yPelHeight;
public short yMax;
public short yMin;
}
}
}
53 changes: 53 additions & 0 deletions Compat/Win32APIs.cs
@@ -0,0 +1,53 @@
using System;
using System.Windows.Forms;

namespace Win32APIs
{
public class MultiByte
{
public static uint GetCodePageMaxCharSize (uint CodePage)
{
throw new NotImplementedException("UnImplemented CodePage:" + CodePage + " MaxChar");
}

public static bool IsCodePageInstalled (uint CodePage)
{
//Lie about having every CodePage?
throw new NotImplementedException("UnImplemented CodePage:" + CodePage);
}

public static bool IsCodePageLeadByte (uint CodePage, byte c)
{
throw new NotImplementedException("UnImplemented Win32API.MultiByte/IsCodePageLeadByte: "
+ CodePage + ", byte " + c);
}
public static int MultiByteCharToUnicodeChar (uint CodePage, ushort c)
{
throw new NotImplementedException("UnImplemented Win32API.MultiByte/MultiByteCharToUnicodeChar: "
+ CodePage + ", char " + c);
}
}
public class SH
{
public static string BrowseForFolder ()
{
FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();
folderBrowserDialog.Description =
"Select the directory to save XML font reports to";

folderBrowserDialog.ShowNewFolderButton = true;

// default to user's home, allow navigate to everywhere else
folderBrowserDialog.SelectedPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
folderBrowserDialog.RootFolder = Environment.SpecialFolder.MyComputer;

DialogResult result = folderBrowserDialog.ShowDialog();
if( result == DialogResult.OK )
{
return folderBrowserDialog.SelectedPath;
} else {
return null; //compat
}
}
}
}
12 changes: 12 additions & 0 deletions Compat/WinVerifyTrustAPI.cs
@@ -0,0 +1,12 @@
using System;

namespace WinVerifyTrustAPI
{
public class WinVerifyTrustWrapper
{
public bool WinVerifyTrustFile (string sFilename)
{
throw new NotImplementedException( "UnImplemented WinVerifyTrustAPI.WinVerifyTrustWrapper/WinVerifyTrustFile" );
}
}
}
Binary file added FontVal/App.ico
Binary file not shown.
59 changes: 59 additions & 0 deletions FontVal/AssemblyInfo.cs
@@ -0,0 +1,59 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security.Permissions;

//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("Font Validator")]
[assembly: AssemblyCopyright("Copyright 2001-2009, Microsoft Corporation")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.1.*")]

//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
Binary file added FontVal/Btn1.ico
Binary file not shown.
Binary file added FontVal/Btn2.ico
Binary file not shown.
Binary file added FontVal/Btn3.ico
Binary file not shown.
Binary file added FontVal/Btn4.ico
Binary file not shown.
Binary file added FontVal/Btn5.ico
Binary file not shown.
Binary file added FontVal/Btn6.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions FontVal/ClassDiagram1.cd
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<ClassDiagram MajorVersion="1" MinorVersion="1">
<Class Name="FontVal.project">
<Position X="0.5" Y="0.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAABABIAIBAAAQAAAAAAAQAAQAEAABAAAgAAEBA0AA=</HashCode>
<FileName>project.cs</FileName>
</TypeIdentifier>
</Class>
<Font Name="Tahoma" Size="8.25" />
</ClassDiagram>
67 changes: 67 additions & 0 deletions FontVal/ClassDiagram2.cd
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>
<ClassDiagram MajorVersion="1" MinorVersion="1">
<Class Name="FontVal.Form1" Collapsed="true">
<Position X="0.5" Y="0.5" Width="1.5" />
<TypeIdentifier>
<HashCode>QFDbCAdeijVbQNrRR/Get4DihpM9PEEJBSeAPx0hhjk=</HashCode>
<FileName>Form1.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="FontVal.PersistedData" Collapsed="true">
<Position X="2.25" Y="1.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAKAAAAAAAAAAAAAAAAAAAAQQAAAEgAAAAAAAAAA=</HashCode>
<FileName>Form1.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="FontVal.FormAbout" Collapsed="true">
<Position X="2.25" Y="0.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAACAAABAAAAiAAAACAAAEAAAAAAAAAAAAAAA=</HashCode>
<FileName>FormAbout.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="FontVal.FormReportOptions" Collapsed="true">
<Position X="4" Y="0.5" Width="1.5" />
<TypeIdentifier>
<HashCode>DBAAACAAACAAAMEAAACAIAQDAAgQAEAABSAAAECgIBA=</HashCode>
<FileName>FormReportOptions.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="FontVal.FormTransform" Collapsed="true">
<Position X="0.5" Y="1.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AqCAJAAAACBKBBEBAACAAIEGCAAQAUgBACBAgAEBBAE=</HashCode>
<FileName>FormTransform.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="FontVal.Progress" Collapsed="true">
<Position X="4" Y="1.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAEBLFIISQgEBEIAgiAAGASAAQQCgOKAEgAAAAIgAA=</HashCode>
<FileName>Progress.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="FontVal.project" Collapsed="true">
<Position X="0.5" Y="2.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAABABIAIBAAAQAAAAAAAQAAQAEAABAAAgAAEBA0AA=</HashCode>
<FileName>project.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="FontVal.ResultsForm" Collapsed="true">
<Position X="2.25" Y="2.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAIAAAAAiACAAAgAACAAEAiAAAEAAAAAACAACAAQAA=</HashCode>
<FileName>ResultsForm.cs</FileName>
</TypeIdentifier>
</Class>
<Enum Name="FontVal.ReportFileDestination" Collapsed="true">
<Position X="0.5" Y="3.75" Width="1.5" />
<TypeIdentifier>
<HashCode>gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAACAAAA=</HashCode>
<FileName>Form1.cs</FileName>
</TypeIdentifier>
</Enum>
<Font Name="Tahoma" Size="8.25" />
</ClassDiagram>
Binary file added FontVal/FontVal.Form1.resources
Binary file not shown.

0 comments on commit 02b7906

Please sign in to comment.