WebBrowser control and AddFontMemResourceEx

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



Not exactly a Windows Forms question, but I failed to find a more suitable group.

What I'm trying to accomplish is to enable custom fonts (likely embedded into my application as a resource) in the WebBrowser control (2.0). It works just great to add fonts using AddFontResourceEx, providing a path to the font file in question, but because of both legal and technical reasons I would prefer to be able to only just add the font in memory, from an (encrypted) embedded resource.

Must the WebBrowser control (Internet Explorer) be able to enumerate the fonts or is there another reason AddFontResourceEx works when AddFontMemResourceEx doesn't?

Perhaps there is another way of accomplishing this? WEFT fonts would be OK if there was a way to create them programatically, I guess.

/Gunnar
.



Relevant Pages

  • Internet Explorer and AddFontMemResourceEx
    ... What I'm trying to accomplish is to enable custom fonts in a WebBrowser control. ... It works just great to add fonts using AddFontResourceEx, providing a path to the font file in question, but because of both legal and technical reasons I would prefer to be able to only just add the font in memory, from an embedded resource. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: How do I get larger Helvetica fonts for XFree86??
    ... and/or any files I need to download to accomplish ... Although I can't imagine why you would need fonts greater than 24 pt in ...
    (comp.os.linux.misc)
  • [SLE] List and example of fonts available in oOo
    ... I'm getting ready to undertake a new writing project. ... accomplish what I want, I'd like to use a number of different fonts for ... default available fonts in oOo and see examples of each? ...
    (SuSE)
  • Re: Reportlab and Barcodes
    ... I have used those very same fonts before and they work great, ... trying to get away with using straight Python to accomplish this, ... Josh ...
    (comp.lang.python)
  • Re: Using a font which is not installed on the system
    ... AddFontResourceEx() did the trick. ... Definitely a much better way to use custom fonts in your app (as opposed to ... requiring installation of the fonts to the system). ...
    (microsoft.public.win32.programmer.gdi)