~ubuntu-branches/ubuntu/raring/libcaca/raring

« back to all changes in this revision

Viewing changes to caca/font.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar
  • Date: 2010-02-08 01:40:59 UTC
  • mfrom: (1.1.8 upstream) (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100208014059-9q4av8pze8p7uw3i
Tags: 0.99.beta17-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  libcaca       Colour ASCII-Art library
3
 
 *  Copyright (c) 2002-2006 Sam Hocevar <sam@zoy.org>
 
3
 *  Copyright (c) 2002-2006 Sam Hocevar <sam@hocevar.net>
4
4
 *                All Rights Reserved
5
5
 *
6
 
 *  $Id$
7
 
 *
8
6
 *  This library is free software. It comes without any warranty, to
9
7
 *  the extent permitted by applicable law. You can redistribute it
10
8
 *  and/or modify it under the terms of the Do What The Fuck You Want
118
116
    if(size == 0)
119
117
    {
120
118
        if(!strcasecmp(data, "Monospace 9"))
121
 
            return caca_load_font((char *)&mono9_data, mono9_size);
 
119
            return caca_load_font(mono9_data, mono9_size);
122
120
        if(!strcasecmp(data, "Monospace Bold 12"))
123
 
            return caca_load_font((char *)&monobold12_data, monobold12_size);
 
121
            return caca_load_font(monobold12_data, monobold12_size);
124
122
 
125
123
        seterrno(ENOENT);
126
124
        return NULL;