About creating a font using a path in the facename.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jajjo
    New Member
    • May 2009
    • 26

    About creating a font using a path in the facename.

    Hey there,

    I'm just wondering if it is possible to specify a path to a font, as opposed to just the font name itself.

    For example:

    Code:
        m_FontDesc.Height             = _iHeight;
        m_FontDesc.Width             = _iWidth;
        m_FontDesc.Weight             = _iWeight;
        m_FontDesc.MipLevels         = _iMipLevels;
        m_FontDesc.Italic             = _bItalic;
        m_FontDesc.CharSet             = 0;
        m_FontDesc.PitchAndFamily    = 0;
        m_FontDesc.Quality             = 0;
        m_FontDesc.OutputPrecision   = 0;
    
       [B] wcscpy_s(m_FontDesc.FaceName, "/Fonts/Showcard Gothic");[/B]
    instead of this

    Code:
        m_FontDesc.Height             = _iHeight;
        m_FontDesc.Width             = _iWidth;
        m_FontDesc.Weight             = _iWeight;
        m_FontDesc.MipLevels         = _iMipLevels;
        m_FontDesc.Italic             = _bItalic;
        m_FontDesc.CharSet             = 0;
        m_FontDesc.PitchAndFamily    = 0;
        m_FontDesc.Quality             = 0;
        m_FontDesc.OutputPrecision   = 0;
    
       [B] wcscpy_s(m_FontDesc.FaceName, "Showcard Gothic");[/B]
    This post was taken from another site. It frames my needs exactly, so I pilfered it.

    And ideas on how to do this?

    Thank you for your time :)
Working...