Using Existing Fonts

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

    #1

    Using Existing Fonts

    Hi, I want to check the system for the arial font, then use it bold. I know
    I could just do something like "new Font("Arial",10 ,FontStyle.Bold )", but I
    want to check the system.

    Thanks


  • Simon Trew

    #2
    Re: Using Existing Fonts

    FontFamily family("Arial") ;
    bool available = FontFamily.IsAv ailable(FontSty le.Bold);

    "Steve S" <highd@rogersNO SPAM.com> wrote in message
    news:GCKTa.2215 5$vz%.3336@news 01.bloor.is.net .cable.rogers.c om...[color=blue]
    > Hi, I want to check the system for the arial font, then use it bold. I[/color]
    know[color=blue]
    > I could just do something like "new Font("Arial",10 ,FontStyle.Bold )", but[/color]
    I[color=blue]
    > want to check the system.
    >
    > Thanks
    >
    >[/color]


    Comment

    • Chris Capel

      #3
      Re: Using Existing Fonts

      You shouldn't have to check with Arial, unless you're supporting more than
      one operating system. Every windows machine has Arial installed on it unless
      it's been deleted somehow.

      Chris

      "Steve S" <highd@rogersNO SPAM.com> wrote in message
      news:GCKTa.2215 5$vz%.3336@news 01.bloor.is.net .cable.rogers.c om...[color=blue]
      > Hi, I want to check the system for the arial font, then use it bold. I[/color]
      know[color=blue]
      > I could just do something like "new Font("Arial",10 ,FontStyle.Bold )", but[/color]
      I[color=blue]
      > want to check the system.
      >
      > Thanks
      >
      >[/color]


      Comment

      Working...