community-cookbooks/windows/resources/font.rb
# Check to see if the font is installed
#
# === Returns
# <true>:: If the font is installed
# <false>:: If the font is not instaled
Check to see if the font is installed
Returns
:: If the font is installed
:: If the font is not instaled
Check to see if the font is installed Returns :: If the font is installed :: If the font is not instaled
def font_exists?
    require 'win32ole' if RUBY_PLATFORM =~ /mswin|mingw32|windows/
    fonts_dir = WIN32OLE.new('WScript.Shell').SpecialFolders('Fonts')
    ::File.exist?(win_friendly_path(::File.join(fonts_dir, new_resource.name)))
  end
def font_exists? require 'win32ole' if RUBY_PLATFORM =~ / mswin|mingw32|windows / fonts_dir = WIN32OLE . new ( 'WScript.Shell' ) . SpecialFolders ( 'Fonts' ) :: File . exist? ( win_friendly_path ( :: File . join ( fonts_dir , new_resource . name ) ) ) end
Check to see if the font is installed
 Returns
<true>:: If the font is installed
<false>:: If the font is not instaled
Check to see if the font is installed Returns <true > :: If the font is installed <false > :: If the font is not instaled