LEFT | RIGHT |
(no file at all) | |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 2004--2020 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 2004--2020 Han-Wen Nienhuys <hanwen@xs4all.nl> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "source-file.hh" | 28 #include "source-file.hh" |
29 #include "memory-stream.hh" | 29 #include "memory-stream.hh" |
30 #include "open-type-font.hh" | 30 #include "open-type-font.hh" |
31 #include "main.hh" | 31 #include "main.hh" |
32 #include "warn.hh" | 32 #include "warn.hh" |
33 | 33 |
34 using std::string; | 34 using std::string; |
35 using std::stringstream; | 35 using std::stringstream; |
36 using std::vector; | 36 using std::vector; |
37 | 37 |
38 vector<char> | 38 string |
39 pfb2pfa (const vector<char> &pfb) | 39 pfb2pfa (const string &pfb) |
40 { | 40 { |
41 vector<char> out; | 41 string out; |
42 | 42 |
43 vector<char>::const_iterator p = pfb.begin (); | 43 string::const_iterator p = pfb.begin (); |
44 while (p < pfb.end ()) | 44 while (p < pfb.end ()) |
45 { | 45 { |
46 if (static_cast<Byte>(*p++) != 128) | 46 if (static_cast<Byte>(*p++) != 128) |
47 { | 47 { |
48 error (_ ("Segment header of the Type 1 (PFB) font is broken.")); | 48 error (_ ("Segment header of the Type 1 (PFB) font is broken.")); |
49 break; | 49 break; |
50 } | 50 } |
51 | 51 |
52 Byte type = static_cast<Byte>(*p++); | 52 Byte type = static_cast<Byte>(*p++); |
53 if (type == 3) | 53 if (type == 3) |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 } | 86 } |
87 else | 87 else |
88 { | 88 { |
89 error (_ ("Segment type of the Type 1 (PFB) font is unknown.")); | 89 error (_ ("Segment type of the Type 1 (PFB) font is unknown.")); |
90 break; | 90 break; |
91 } | 91 } |
92 } | 92 } |
93 | 93 |
94 return out; | 94 return out; |
95 } | 95 } |
LEFT | RIGHT |