Set PrivateFont in browser

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

Thanks!

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

Thanks!

Bob

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

Gene
 
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
 
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
 
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


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/web/embedding/weft3/weft01.htm

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

Gene
 
Is this contract specfic to this font,
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.
 
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.

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
 
Back
Top