WritePrinter does not print the font family of a font

Discussion in 'Windows Vista Drivers' started by AF, Mar 4, 2005.

  1. AF

    AF Guest


    I am writinga printer driver and would like to read the FontFamily.
    To do this I accessed the plotter example driver from the DDK and
    put the following code into DrvTextOutput.
    WCHAR *d;
    int i;
    DWORD cbWritten;
    WCHAR t_test2[100];
    l_ifmetrics = FONTOBJ_pifi(pfo);
    d = (WCHAR *)(&l_ifmetrics + l_ifmetrics->cjThis +

    for (i=0; i<10; i++) {
    t_test2 = d;
    WritePrinter(pPDev->hPrinter, (void *)&t_test2, sizeof(t_test2),

    But I do not receive an output. Is it possible that there does not exist
    any entry for the family name of the font? If it is possible, were can
    I take this information from?

    I hope someone can help me. Thank you.

    My best regards

    AF, Mar 4, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.