X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ffreetype.cc;h=7ad6b42d6a81d8916f4b97b6b8e657705e650317;hb=068eadf4ad2d70a0eec8589921ed6a12742b6c63;hp=a966bf3bf9f80e0a91fd4fedfb7daf6668ea0820;hpb=f525f992e5dbeb579981153775cc9ee10b78cb3f;p=lilypond.git diff --git a/lily/freetype.cc b/lily/freetype.cc index a966bf3bf9..7ad6b42d6a 100644 --- a/lily/freetype.cc +++ b/lily/freetype.cc @@ -1,10 +1,20 @@ /* - freetype.cc -- implement Freetype routines. + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 2004--2011 Han-Wen Nienhuys - (c) 2004 Han-Wen Nienhuys + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "freetype.hh" @@ -12,14 +22,11 @@ FT_Library freetype2_library; - void -init_freetype() +init_freetype () { - int errorcode = FT_Init_FreeType( &freetype2_library ); + FT_Error errorcode = FT_Init_FreeType (&freetype2_library); if (errorcode) - { - error("Could not initialize freetype"); - } + error ("cannot initialize FreeType"); }