|
|
| version 1.83, 2002/11/25 15:37:12 | version 1.84, 2002/11/27 09:43:53 |
|---|---|
| Line 976 static void _font(Request& r, const Stri | Line 976 static void _font(Request& r, const Stri |
| throw Exception("parser.runtime", | throw Exception("parser.runtime", |
| &method_name, | &method_name, |
| "alphabet must not be empty"); | "alphabet must not be empty"); |
| if(int remainder=image.SY() % alphabet.size()) | |
| throw Exception("parser.runtime", | |
| &method_name, | |
| "font-file height(%d) not divisable by alphabet size(%d), remainder=%d", | |
| image.SY(), alphabet.size(), remainder); | |
| static_cast<VImage *>(r.get_self())->font=new(pool) Font(pool, | static_cast<VImage *>(r.get_self())->font=new(pool) Font(pool, |
| alphabet, | alphabet, |