This repository has been archived by the owner on Oct 18, 2023. It is now read-only.
forked from microsoft/Font-Validator
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4b49c3
commit 02b7906
Showing
235 changed files
with
91,136 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 not shown.
Oops, something went wrong.