CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2002
    Location
    Greece
    Posts
    42

    Cool Retrieval of available scripts for certain fonts

    Hello.
    I'm writing an editor that is to be used in several languages.
    I want the user to be able to select any of the installed fonts, and I use a combo box for this.
    Because of the different languages though, I want the user to be able to select the script (Charset) for the selected font. The available scripts will be in a second combo box.
    The problem is that not all fonts have the same scripts!
    For example, a certain font could have Western, Greek, Cyrillyc, when another font could have Western, Greek and Chinese!

    So, when the user selects a font, I have to retrieve all the available scripts for this font, I hope this is clear.
    Does anyone know how I do this?
    Thanks.
    Last edited by Vag; July 23rd, 2006 at 04:42 PM. Reason: typo
    Visit www.greekroms.net

    Greek translations of roms

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Retrieval of available scripts for certain fonts

    Would the Common Dialog Control - Fonts help for this? I've never tried changing languages, though... Just a thought!
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Apr 2002
    Location
    Greece
    Posts
    42

    Re: Retrieval of available scripts for certain fonts

    First of all, thanks for the reply.
    ...but no, it wouldn't.
    VB can't understand what script you select when you use that! I mean there are properties for everything (font, size, color, bold, italics, underline, etc.) BUT the script.
    Visit www.greekroms.net

    Greek translations of roms

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured