none
Application cannot obtain the information of monolithic driver's device fonts on Windows x64 RRS feed

  • Question

  • Dear, we develop a driver and encountered a bug need your support. Detail as below:

    1.   Our own printer driver which is developed by using WDK (Windows Driver Kits 7.1.0), is known as monolithic driver.

    2.   In addition, I wrote sample application calls EnumFontFamiliesEx() in order to confirm whether the sample application can obtain our own driver's device fonts information both on Windows 32-bit and 64-bit?

    + On Windows 32-bits, sample application can obtain the information of our own printer driver driver's device fonts successfully by using EnumFontFamiliesEx() (as expected)

    + On Windows 64-bits, sample application cannot obtain the information of our own printer driver driver's device fonts successfully by using EnumFontFamiliesEx(). (against expected).

    3. Our Monolithic printer dirver uses DrvQueryFont(),DrvQueryFontTree() function which is called by GDI to get IFIMETRICS structure for a given font. However, we found the difference between Windows 64-bits and 32-bits when reproducing problem.

    - On Windows 32-bits, DrvQueryFont() is called 140 times and DrvQueryFontTree() is called 140 times

    - On Windows 64-bits, DrvQueryFont() is called just 1 time, but DrvQueryFontTree() is not called.

    4. Above problem does not occur with Uni-driver (Mini Dirver) which is also developed by using WDK 7.1.0

    5. Steps to repro:

    - Use our own printer driver (monolithic driver) and Microsoft Word 2013.

    - Select [File] à [Options] à [Advanced], check [Use fonts that are stored on the Printer] checkbox.

    - Select [File] à [Print] à specify our own printer driver.

    - Check result on Font combo-box of Microsoft Word 2013

     

    6. Expected results: Our own printer driver’s device fonts are displayed on font combo-box of Microsoft Word 2013 on both Windows 64-bits and 32-bits.

    7. Actual results: Our own printer driver’s device fonts are displayed on font combo-box of Microsoft Word 2013 on Windows 32-bits, but cannot be displayed on Windows 64-bits.

    8. Product Family (IOT/Windows/Windows Server/Windows Servicing): Windows

    9. Microsoft Build Number: Version 6.1, build 7601 SP1

    Please help feedback ASAP as this is an end user issue.

    Tuesday, February 6, 2018 2:45 AM

All replies