Re: Using local font file (.ttf) in asp.net GDI+ app.



On Oct 20, 7:59 am, Göran Andersson <gu...@xxxxxxxxx> wrote:
deeh...@xxxxxxxxx wrote:
Hi,

I am trying to use a special font in an GDI+ application. The font
file is located in my root folder.
The following code does not work but might explain what I am trying to
do...

Font f = new Font(Server.MapPath("somefont.ttf"), 200);

Thank you for your time.

Regards,

Hensson

Have a look at the PrivateFontCollection class.

--
Göran Andersson
_____http://www.guffa.com- Hide quoted text -

- Show quoted text -

Any chance you can access this font if it resides in your resources?

JT

.



Relevant Pages

  • Re: Using local font file (.ttf) in asp.net GDI+ app.
    ... file is located in my root folder. ... Constructor has a family name as a first ... If you would need to load a font from the file, ... PrivateFontCollection p = new PrivateFontCollection; ...
    (microsoft.public.dotnet.framework.aspnet)
  • Telling GD2 Where Fonts Are
    ... I'm having trouble telling GD2 where the font I'm using in a PHP exercise ... The line of PHP code that gives this info goes like this--at least the way ... Should I put the font in the root folder, ...
    (php.general)
  • Re: Using local font file (.ttf) in asp.net GDI+ app.
    ... file is located in my root folder. ... If you would need to load a font from the file, ... PrivateFontCollection p = new PrivateFontCollection; ...
    (microsoft.public.dotnet.framework.aspnet)

Quantcast