Author: tkreuzer Date: Sun May 8 17:24:34 2011 New Revision: 51648
URL: http://svn.reactos.org/svn/reactos?rev=51648&view=rev Log: [GDI FONT DRIVER] - Add an info file describing how to install and test the driver
Added: branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/info.txt (with props) Modified: branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/glyph.c branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/tttables.c
Modified: branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/glyph.c URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2011/GdiFontDriver/drivers/... ============================================================================== --- branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/glyph.c [iso-8859-1] (original) +++ branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/glyph.c [iso-8859-1] Sun May 8 17:24:34 2011 @@ -165,7 +165,7 @@ return NULL; }
- /* Check if there is rotation / shearing (cannot use iComplexity!?) */ + /* Check if there is rotation / skewing (cannot use iComplexity!?) */ if (!FLOATOBJ_bIsNull(&fxform.eM12) || !FLOATOBJ_bIsNull(&fxform.eM21)) { __debugbreak();
Added: branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/info.txt URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2011/GdiFontDriver/drivers/... ============================================================================== --- branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/info.txt (added) +++ branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/info.txt [iso-8859-1] Sun May 8 17:24:34 2011 @@ -1,0 +1,23 @@ + + +Installation +======== +To install the driver, copy it to your Windows\system32 folder. Then go the following registry key: +HKLM\SOFTWARE\Microsodt\Windows NT\CurrentVersion\Font Drivers +There should be at least one value: "Adobe Type Manager" : REG_SZ : "atmfd.dll" +Create a new value of type REG_SZ. The name is "Freetype Font driver", the value is "ftfd.dll" +Reboot. + +Testing +===== +Since Windows uses an internal driver for TrueType fonts, build into win32k and loaded before any +other font driver, custom drivers will never see any ttf files. To test it, you can use OpenType fonts +in Adobe Type1 format. Those would usually be handled by the "Adobe Type Manager font driver" atmfd.dll. +But the newly installed driver will see the font file first. + +Warning +====== +The driver is not production quality, so expect crashes. Don't use it on your production machine, but in +a virtual machine. Attaching WinDbg to Windows is recommended to see the debug output. Or use DbgView +from SysInternals. +
Propchange: branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/info.txt ------------------------------------------------------------------------------ svn:eol-style = native
Modified: branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/tttables.c URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2011/GdiFontDriver/drivers/... ============================================================================== --- branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/tttables.c [iso-8859-1] (original) +++ branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/tttables.c [iso-8859-1] Sun May 8 17:24:34 2011 @@ -152,7 +152,7 @@ switch (jClassId) { case 0: // Class ID = 0 No Classification - break; + return FF_SWISS;
case 1: // Class ID = 1 Oldstyle Serifs switch (jSubclassId) @@ -299,8 +299,9 @@ break; }
-__debugbreak(); - return 0; + WARN("Unhandled class: jClassId=%d, jSubclassId=%d\n", jClassId, jSubclassId); +//__debugbreak(); + return FF_SWISS; }
BOOL