| 1 |
// -*- related-file-name: "../include/efont/encoding.hh" -*- |
| 2 |
|
| 3 |
/* encoding.{cc,hh} -- 8-bit encodings |
| 4 |
* |
| 5 |
* Copyright (c) 1998-2019 Eddie Kohler |
| 6 |
* |
| 7 |
* This program is free software; you can redistribute it and/or modify it |
| 8 |
* under the terms of the GNU General Public License as published by the Free |
| 9 |
* Software Foundation; either version 2 of the License, or (at your option) |
| 10 |
* any later version. This program is distributed in the hope that it will be |
| 11 |
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
| 13 |
* Public License for more details. |
| 14 |
*/ |
| 15 |
|
| 16 |
#ifdef HAVE_CONFIG_H |
| 17 |
# include <config.h> |
| 18 |
#endif |
| 19 |
#include <efont/encoding.hh> |
| 20 |
namespace Efont { |
| 21 |
|
| 22 |
void |
| 23 |
Encoding8::reserve_glyphs(int count) |
| 24 |
{ |
| 25 |
if (count <= _codes.size()) return; |
| 26 |
_codes.resize(count, -1); |
| 27 |
} |
| 28 |
|
| 29 |
} |