Drawstring chars

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Matt Kane (MattKane_at_nospam.nospam)
Date: 12/20/04

  • Next message: Gary G. Little: "Re: [newbie] Clever dispatch routines"
    Date: Mon, 20 Dec 2004 13:23:02 -0800
    
    

    Hello,

    Here is a question about .NET. With the new DrawString() method, I still see
    a call to my driver's TextOut(). However, instead of seeing a Unicode string
    in pstro->pwszOrg, I see a bunch of glyph handles (since pstro->flAccel has
    the SO_GLYPHINDEX_TEXTOUT bit set, I know what I'm looking for)

    Is there any way to figure out the relation between the glyph handles and
    the actual characters they represent? I think if I call FONTOBJ_pfdg() on the
    font object argument I can get somewhere, but I'm having trouble
    understanding the documentation once I get to this point:

    typedef struct _FD_GLYPHSET {
      ULONG cjThis;
      FLONG flAccel;
      ULONG cGlyphsSupported;
      ULONG cRuns;
      WCRUN awcrun[1];
    } FD_GLYPHSET, *PFD_GLYPHSET;

    and

    typedef struct _WCRUN {
      WCHAR wcLow;
      USHORT cGlyphs;
      HGLYPH *phg;
    } WCRUN, *PWCRUN;

    I can't figure out how to interpret the contents of these structures. Do I
    need to look up the glyph handles in that array? I think I tried that, but I
    may have gotten confused at some point.

    -- 
    Matt Kane
    mkane@zebra.orange.com minus fruit
    

  • Next message: Gary G. Little: "Re: [newbie] Clever dispatch routines"

    Relevant Pages