Changeset a35b458 in mainline for uspace/lib/draw/gfx/font-8x16.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/draw/gfx/font-8x16.c
r3061bc1 ra35b458 51 51 if (found) 52 52 *found = true; 53 53 54 54 if (ch == 0x0000) 55 55 return 0; 56 56 57 57 if ((ch >= 0x0020) && (ch <= 0x007f)) 58 58 return (ch - 32); 59 59 60 60 if ((ch >= 0x00a0) && (ch <= 0x021f)) 61 61 return (ch - 64); 62 62 63 63 if ((ch >= 0x0222) && (ch <= 0x0233)) 64 64 return (ch - 66); 65 65 66 66 if ((ch >= 0x0250) && (ch <= 0x02ad)) 67 67 return (ch - 94); 68 68 69 69 if ((ch >= 0x02b0) && (ch <= 0x02cf)) 70 70 return (ch - 96); 71 71 72 72 if ((ch >= 0x02d8) && (ch <= 0x02dd)) 73 73 return (ch - 104); 74 74 75 75 if (ch == 0x02ee) 76 76 return 630; 77 77 78 78 if ((ch >= 0x0300) && (ch <= 0x0301)) 79 79 return (ch - 137); 80 80 81 81 if (ch == 0x0303) 82 82 return 633; 83 83 84 84 if (ch == 0x0309) 85 85 return 634; 86 86 87 87 if ((ch >= 0x0312) && (ch <= 0x0314)) 88 88 return (ch - 151); 89 89 90 90 if (ch == 0x0323) 91 91 return 638; 92 92 93 93 if ((ch >= 0x0340) && (ch <= 0x0341)) 94 94 return (ch - 193); 95 95 96 96 if ((ch >= 0x0374) && (ch <= 0x0375)) 97 97 return (ch - 243); 98 98 99 99 if (ch == 0x037a) 100 100 return 643; 101 101 102 102 if (ch == 0x037e) 103 103 return 644; 104 104 105 105 if ((ch >= 0x0384) && (ch <= 0x038a)) 106 106 return (ch - 255); 107 107 108 108 if (ch == 0x038c) 109 109 return 652; 110 110 111 111 if ((ch >= 0x038e) && (ch <= 0x03a1)) 112 112 return (ch - 257); 113 113 114 114 if ((ch >= 0x03a3) && (ch <= 0x03ce)) 115 115 return (ch - 258); 116 116 117 117 if ((ch >= 0x03d0) && (ch <= 0x03d7)) 118 118 return (ch - 259); 119 119 120 120 if ((ch >= 0x03da) && (ch <= 0x03f3)) 121 121 return (ch - 261); 122 122 123 123 if ((ch >= 0x0400) && (ch <= 0x0486)) 124 124 return (ch - 273); 125 125 126 126 if ((ch >= 0x0488) && (ch <= 0x04ce)) 127 127 return (ch - 274); 128 128 129 129 if ((ch >= 0x04d0) && (ch <= 0x04f5)) 130 130 return (ch - 275); 131 131 132 132 if ((ch >= 0x04f8) && (ch <= 0x04f9)) 133 133 return (ch - 277); 134 134 135 135 if ((ch >= 0x0500) && (ch <= 0x050f)) 136 136 return (ch - 283); 137 137 138 138 if ((ch >= 0x0530) && (ch <= 0x0556)) 139 139 return (ch - 315); 140 140 141 141 if ((ch >= 0x0559) && (ch <= 0x055f)) 142 142 return (ch - 317); 143 143 144 144 if ((ch >= 0x0561) && (ch <= 0x0587)) 145 145 return (ch - 318); 146 146 147 147 if ((ch >= 0x0589) && (ch <= 0x058a)) 148 148 return (ch - 319); 149 149 150 150 if ((ch >= 0x0591) && (ch <= 0x05a1)) 151 151 return (ch - 325); 152 152 153 153 if ((ch >= 0x05a3) && (ch <= 0x05b9)) 154 154 return (ch - 326); 155 155 156 156 if ((ch >= 0x05bb) && (ch <= 0x05c4)) 157 157 return (ch - 327); 158 158 159 159 if ((ch >= 0x05d0) && (ch <= 0x05ea)) 160 160 return (ch - 338); 161 161 162 162 if ((ch >= 0x05f0) && (ch <= 0x05f4)) 163 163 return (ch - 343); 164 164 165 165 if (ch == 0x060c) 166 166 return 1182; 167 167 168 168 if (ch == 0x061b) 169 169 return 1183; 170 170 171 171 if (ch == 0x061f) 172 172 return 1184; 173 173 174 174 if ((ch >= 0x0621) && (ch <= 0x063a)) 175 175 return (ch - 384); 176 176 177 177 if ((ch >= 0x0640) && (ch <= 0x0655)) 178 178 return (ch - 389); 179 179 180 180 if ((ch >= 0x0660) && (ch <= 0x066d)) 181 181 return (ch - 399); 182 182 183 183 if ((ch >= 0x0670) && (ch <= 0x06ed)) 184 184 return (ch - 401); 185 185 186 186 if ((ch >= 0x06f0) && (ch <= 0x06fe)) 187 187 return (ch - 403); 188 188 189 189 if (ch == 0x10d3) 190 190 return 1388; 191 191 192 192 if (ch == 0x10d7) 193 193 return 1389; 194 194 195 195 if (ch == 0x10da) 196 196 return 1390; 197 197 198 198 if (ch == 0x10dd) 199 199 return 1391; 200 200 201 201 if (ch == 0x10e6) 202 202 return 1392; 203 203 204 204 if ((ch >= 0x1e00) && (ch <= 0x1e9b)) 205 205 return (ch - 6287); 206 206 207 207 if ((ch >= 0x1ea0) && (ch <= 0x1ef9)) 208 208 return (ch - 6291); 209 209 210 210 if ((ch >= 0x1f00) && (ch <= 0x1f07)) 211 211 return (ch - 6297); 212 212 213 213 if ((ch >= 0x2000) && (ch <= 0x2027)) 214 214 return (ch - 6545); 215 215 216 216 if ((ch >= 0x2030) && (ch <= 0x2046)) 217 217 return (ch - 6553); 218 218 219 219 if ((ch >= 0x2048) && (ch <= 0x204d)) 220 220 return (ch - 6554); 221 221 222 222 if (ch == 0x2070) 223 223 return 1716; 224 224 225 225 if ((ch >= 0x2074) && (ch <= 0x208f)) 226 226 return (ch - 6591); 227 227 228 228 if ((ch >= 0x20a0) && (ch <= 0x20af)) 229 229 return (ch - 6607); 230 230 231 231 if ((ch >= 0x2100) && (ch <= 0x213a)) 232 232 return (ch - 6687); 233 233 234 234 if ((ch >= 0x2153) && (ch <= 0x2183)) 235 235 return (ch - 6711); 236 236 237 237 if ((ch >= 0x2190) && (ch <= 0x21f3)) 238 238 return (ch - 6723); 239 239 240 240 if ((ch >= 0x2200) && (ch <= 0x22f1)) 241 241 return (ch - 6735); 242 242 243 243 if (ch == 0x2300) 244 244 return 2211; 245 245 246 246 if (ch == 0x2302) 247 247 return 2212; 248 248 249 249 if ((ch >= 0x2308) && (ch <= 0x230b)) 250 250 return (ch - 6755); 251 251 252 252 if (ch == 0x2310) 253 253 return 2217; 254 254 255 255 if (ch == 0x2318) 256 256 return 2218; 257 257 258 258 if ((ch >= 0x231a) && (ch <= 0x231b)) 259 259 return (ch - 6767); 260 260 261 261 if ((ch >= 0x2320) && (ch <= 0x2321)) 262 262 return (ch - 6771); 263 263 264 264 if ((ch >= 0x2329) && (ch <= 0x232a)) 265 265 return (ch - 6778); 266 266 267 267 if ((ch >= 0x239b) && (ch <= 0x23bd)) 268 268 return (ch - 6890); 269 269 270 270 if (ch == 0x23ce) 271 271 return 2260; 272 272 273 273 if ((ch >= 0x2409) && (ch <= 0x240d)) 274 274 return (ch - 6964); 275 275 276 276 if ((ch >= 0x2423) && (ch <= 0x2424)) 277 277 return (ch - 6985); 278 278 279 279 if (ch == 0x2426) 280 280 return 2268; 281 281 282 282 if ((ch >= 0x2500) && (ch <= 0x2595)) 283 283 return (ch - 7203); 284 284 285 285 if ((ch >= 0x25a0) && (ch <= 0x25f7)) 286 286 return (ch - 7213); 287 287 288 288 if ((ch >= 0x2600) && (ch <= 0x2602)) 289 289 return (ch - 7221); 290 290 291 291 if ((ch >= 0x2605) && (ch <= 0x260d)) 292 292 return (ch - 7223); 293 293 294 294 if ((ch >= 0x2610) && (ch <= 0x2613)) 295 295 return (ch - 7225); 296 296 297 297 if (ch == 0x2620) 298 298 return 2523; 299 299 300 300 if (ch == 0x2622) 301 301 return 2524; 302 302 303 303 if (ch == 0x2626) 304 304 return 2525; 305 305 306 306 if ((ch >= 0x2628) && (ch <= 0x262b)) 307 307 return (ch - 7242); 308 308 309 309 if ((ch >= 0x262e) && (ch <= 0x2637)) 310 310 return (ch - 7244); 311 311 312 312 if ((ch >= 0x2639) && (ch <= 0x2653)) 313 313 return (ch - 7245); 314 314 315 315 if ((ch >= 0x2660) && (ch <= 0x2667)) 316 316 return (ch - 7257); 317 317 318 318 if ((ch >= 0x2669) && (ch <= 0x266f)) 319 319 return (ch - 7258); 320 320 321 321 if ((ch >= 0xfb00) && (ch <= 0xfb05)) 322 322 return (ch - 61674); 323 323 324 324 if ((ch >= 0xfb50) && (ch <= 0xfbb1)) 325 325 return (ch - 61748); 326 326 327 327 if ((ch >= 0xfbd3) && (ch <= 0xfbe9)) 328 328 return (ch - 61781); 329 329 330 330 if ((ch >= 0xfbfc) && (ch <= 0xfbff)) 331 331 return (ch - 61799); 332 332 333 333 if ((ch >= 0xfc5b) && (ch <= 0xfc63)) 334 334 return (ch - 61890); 335 335 336 336 if (ch == 0xfc90) 337 337 return 2722; 338 338 339 339 if ((ch >= 0xfcf2) && (ch <= 0xfcf4)) 340 340 return (ch - 62031); 341 341 342 342 if ((ch >= 0xfd3c) && (ch <= 0xfd3f)) 343 343 return (ch - 62102); 344 344 345 345 if (ch == 0xfdf2) 346 346 return 2730; 347 347 348 348 if ((ch >= 0xfe50) && (ch <= 0xfe52)) 349 349 return (ch - 62373); 350 350 351 351 if ((ch >= 0xfe54) && (ch <= 0xfe66)) 352 352 return (ch - 62374); 353 353 354 354 if ((ch >= 0xfe68) && (ch <= 0xfe6b)) 355 355 return (ch - 62375); 356 356 357 357 if ((ch >= 0xfe70) && (ch <= 0xfe72)) 358 358 return (ch - 62379); 359 359 360 360 if (ch == 0xfe74) 361 361 return 2760; 362 362 363 363 if ((ch >= 0xfe76) && (ch <= 0xfefc)) 364 364 return (ch - 62381); 365 365 366 366 if (ch == 0xfeff) 367 367 return 2896; 368 368 369 369 if (found) 370 370 *found = false; 371 371 372 372 return 2898; 373 373 } … … 3272 3272 {0xf1, 0x35, 0x55, 0x8a, 0xe0, 0x06, 0x95, 0xd6, 0xb5, 0x97, 0x00, 0xee, 0x8a, 0xee, 0x28, 0xe8}, 3273 3273 {0x00, 0x38, 0x7c, 0x7c, 0xc6, 0x92, 0xf2, 0xe6, 0xfe, 0xe6, 0x7c, 0x7c, 0x38, 0x00, 0x00, 0x00}, 3274 3274 3275 3275 /* Special glyph for unknown character */ 3276 3276 {0x00, 0x00, 0x7c, 0xc6, 0xc6, 0x0c, 0x18, 0x18, 0x18, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00}
Note:
See TracChangeset
for help on using the changeset viewer.