Set PrivateFont in browser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • BobAchgill

    #1

    Set PrivateFont in browser

    Can I set Private Fonts in a browser object with the new Visual Basic .net
    2005?

    Thanks!

    Bob
  • gene kelley

    #2
    Re: Set PrivateFont in browser

    On Sun, 11 Jun 2006 21:47:02 -0700, BobAchgill
    <BobAchgill@dis cussions.micros oft.com> wrote:
    [color=blue]
    >Can I set Private Fonts in a browser object with the new Visual Basic .net
    >2005?
    >
    >Thanks!
    >
    >Bob[/color]

    How would that work? Displayed fonts are usually specified within the
    document being viewed in the browser.

    Gene

    Comment

    • BobAchgill

      #3
      Re: Set PrivateFont in browser

      I'm not sure... but I need to have the browser object use a font that is only
      in my application directory. i.e NOT installed in the Windows Font directory.
      For contractural reasons I need to keep the font only in my application's
      directory.

      I use set PrivateFont to do this for other objects that use the subject font
      but the COM browser object for VB .Net 2003 defaults to look for fonts in
      Windows fonts directory. :o( I was hoping the managed browser object under
      VB .Net 2005 might let me specify a font to be in a different location from
      the Windows font directory. Then again maybe you know of a way in html to do
      the same??

      Bob

      "gene kelley" wrote:
      [color=blue]
      > On Sun, 11 Jun 2006 21:47:02 -0700, BobAchgill
      > <BobAchgill@dis cussions.micros oft.com> wrote:
      >[color=green]
      > >Can I set Private Fonts in a browser object with the new Visual Basic .net
      > >2005?
      > >
      > >Thanks!
      > >
      > >Bob[/color]
      >
      > How would that work? Displayed fonts are usually specified within the
      > document being viewed in the browser.
      >
      > Gene
      >[/color]

      Comment

      • GhostInAK

        #4
        Re: Set PrivateFont in browser

        Hello gene,

        I'm 99.9% positive that the web browser control can not consume fonts which
        have not been installed.

        You have two options that I can see.. and I would STRONGLY suggest option 1.

        1. Renegotiate the contract. This is your best option from a technical
        standpoint hands down.

        2. Grab the text to be displayed, render it to a graphics object and inject
        it into the html. This is a rather hacky option that will be buggy at best.

        -Boo
        [color=blue]
        > On Sun, 11 Jun 2006 21:47:02 -0700, BobAchgill
        > <BobAchgill@dis cussions.micros oft.com> wrote:[color=green]
        >> Can I set Private Fonts in a browser object with the new Visual Basic
        >> .net 2005?
        >>
        >> Thanks!
        >>
        >> Bob
        >>[/color]
        > How would that work? Displayed fonts are usually specified within the
        > document being viewed in the browser.
        >
        > Gene
        >[/color]


        Comment

        • gene kelley

          #5
          Re: Set PrivateFont in browser

          On Mon, 12 Jun 2006 14:39:02 -0700, BobAchgill
          <BobAchgill@dis cussions.micros oft.com> wrote:
          [color=blue]
          >I'm not sure... but I need to have the browser object use a font that is only
          >in my application directory. i.e NOT installed in the Windows Font directory.
          > For contractural reasons I need to keep the font only in my application's
          >directory.
          >
          >I use set PrivateFont to do this for other objects that use the subject font
          >but the COM browser object for VB .Net 2003 defaults to look for fonts in
          >Windows fonts directory. :o( I was hoping the managed browser object under
          >VB .Net 2005 might let me specify a font to be in a different location from
          >the Windows font directory. Then again maybe you know of a way in html to do
          >the same??
          >
          >Bob
          >[/color]
          [color=blue][color=green]
          >>[/color][/color]


          If you are talking about using that font on only certain pages that
          you authored, you might look at WEFT which is a tool for enbedding a
          font object in a web page. As the WebBrowser is essentially a wrapper
          around IE, this should work.

          http://www.microsoft.com/typography/...ft3/weft01.htm

          Is this contract specfic to this font, or, does it prohibit installing
          fonts, period?

          Gene

          Comment

          • BobAchgill

            #6
            Re: Set PrivateFont in browser

            [color=blue]
            > Is this contract specfic to this font,[/color]
            YES its a specific font.

            I tried WEFT and it works with the IE object browser but slow on loading a
            full font with no subsetting. It would be nice if WEFT was not so
            restrictive on which html files could use the font. Is there a wild card to
            let all "roots" share the same font? I don't want to have to recompile the
            WEFT font file every time I add an html file in another directory just so it
            can also share the same font.

            Comment

            • gene kelley

              #7
              Re: Set PrivateFont in browser

              On Tue, 13 Jun 2006 16:57:02 -0700, BobAchgill
              <BobAchgill@dis cussions.micros oft.com> wrote:
              [color=blue]
              >[color=green]
              >> Is this contract specfic to this font,[/color]
              >YES its a specific font.
              >
              >I tried WEFT and it works with the IE object browser but slow on loading a
              >full font with no subsetting. It would be nice if WEFT was not so
              >restrictive on which html files could use the font. Is there a wild card to
              >let all "roots" share the same font? I don't want to have to recompile the
              >WEFT font file every time I add an html file in another directory just so it
              >can also share the same font.[/color]

              It's been a couple of years since I did any web page construction. I
              had that WEFT link, but never actually had a subsequent reason to use
              the tool. I glancing at the tutorial, I had the impression that any
              site page with a common root, pages with that common root would use
              the eot file(s), though sites may contain multiple roots. In other
              words, if my site had a root, http://www.mysite.com, then all pages on
              the site with that root could use the eot file without listing all
              those pages in the eot file. Is that not the case?

              Last time I made a web site I used an external CSS file where all
              pages on the site referred to that one file. Might it be possible to
              use the eot via an external CSS file?

              Gene

              Comment

              Working...