[PD-cvs] externals/pidip/modules pdp_qtext.c,NONE,1.1

Yves Degoyon sevyves at users.sourceforge.net
Tue Nov 22 07:20:40 CET 2005


Update of /cvsroot/pure-data/externals/pidip/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4717

Added Files:
	pdp_qtext.c 
Log Message:
PiDiP 0.12.20

--- NEW FILE: pdp_qtext.c ---
/*
 *   PiDiP module
 *   Copyright (c) by Yves Degoyon (ydegoyon at free.fr)
 *
 *   This program 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 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program 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 this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */
[...1047 lines suppressed...]
    class_addmethod(pdp_qtext_class, (t_method)pdp_qtext_right, gensym("right"),  A_NULL);
    class_addmethod(pdp_qtext_class, (t_method)pdp_qtext_center, gensym("center"),  A_NULL);
    class_addmethod(pdp_qtext_class, (t_method)pdp_qtext_margin, gensym("margin"),  A_DEFFLOAT, A_NULL);
    class_addmethod(pdp_qtext_class, (t_method)pdp_qtext_marginv, gensym("marginv"),  A_DEFFLOAT, A_NULL);
    class_addmethod(pdp_qtext_class, (t_method)pdp_qtext_direction, gensym("direction"),  A_DEFFLOAT, A_NULL);
    class_addmethod(pdp_qtext_class, (t_method)pdp_qtext_mode, gensym("layermode"),  A_SYMBOL, A_NULL);
    class_sethelpsymbol( pdp_qtext_class, gensym("pdp_qtext.pd") );

    imlib_add_path_to_font_path("/usr/X11R6/lib/X11/fonts/TTF");
    font = imlib_load_font(DEFAULT_FONT);
    if ( !font )
    {
       post( "pdp_qtext : severe error : could not load default font : no rendering !!!" );
    }
    imlib_context_set_font( font );
}

#ifdef __cplusplus
}
#endif





More information about the Pd-cvs mailing list