MRaster lib 21.0.0.0
Image Processing Library
Loading...
Searching...
No Matches
mjr::hershey Class Reference

#include <hersheyFont.hpp>

Collaboration diagram for mjr::hershey:

Classes

struct  herChar
 Struct to define a glyph. More...
 

Public Types

enum class  font {
  GREEK_SL_SANSERIF = 0 , GREEK_DL_SERIF = 1 , ROMAN_SL_SANSERIF = 2 , ROMAN_DL_SERIF = 3 ,
  ROMAN_TL_SERIF = 4
}
 Enum for hershey font names. More...
 

Static Public Attributes

static constexpr int ascii2hershey [5][95]
 ASCII to Hershey Character Number mapping array.
 
static constexpr herChar chars [3935]
 Data for each hershey font

 

Detailed Description

Definition at line 5 of file hersheyFont.hpp.

Member Enumeration Documentation

◆ font

enum class mjr::hershey::font
strong

Enum for hershey font names.

Enumerator
GREEK_SL_SANSERIF 

greek sans-serif single lines

GREEK_DL_SERIF 

greek sans-serif double lines

ROMAN_SL_SANSERIF 

roman sans-serif single lines

ROMAN_DL_SERIF 

roman sans-serif double lines

ROMAN_TL_SERIF 

roman serif triple lines

Definition at line 10 of file hersheyFont.hpp.

Member Data Documentation

◆ ascii2hershey

int mjr::hershey::ascii2hershey[5][95]
staticconstexpr
Initial value:
= { { 699, 714, 717, 733, 719, 2271, 734, 731, 721, 722, 2219, 725, 711, 724, 710, 720, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 712, 713, 2241, 726, 2242, 715, 2273, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 699, 699, 2223, 804, 2224, 2262, 999, 730, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 699, 699, 2225, 723, 2226, 2246 },
{ 2199, 2214, 2213, 2275, 2274, 2271, 2272, 2251, 2221, 2222, 2219, 2232, 2211, 2231, 2210, 2220, 2200, 2201, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2209, 2212, 2213, 2241, 2238, 2242, 2215, 2273, 2027, 2028, 2029, 2030, 2031, 2032, 2033, 2034, 2035, 2036, 2037, 2038, 2039, 2040, 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 2199, 2199, 2223, 804, 2224, 2262, 999, 2252, 2127, 2128, 2129, 2130, 2131, 2132, 2133, 2134, 2135, 2136, 2137, 2138, 2139, 2140, 2141, 2142, 2143, 2144, 2145, 2146, 2147, 2148, 2149, 2150, 2199, 2199, 2225, 2229, 2226, 2246 },
{ 699, 714, 717, 733, 719, 2271, 734, 731, 721, 722, 2219, 725, 711, 724, 710, 720, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 712, 713, 2241, 726, 2242, 715, 2273, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 2223, 804, 2224, 2262, 999, 730, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 2225, 723, 2226, 2246 },
{ 2699, 2714, 2728, 2275, 2719, 2271, 2718, 2717, 2721, 2722, 2723, 2725, 2711, 2724, 2710, 2720, 2700, 2701, 2702, 2703, 2704, 2705, 2706, 2707, 2708, 2709, 2712, 2713, 2241, 2726, 2242, 2715, 2273, 2501, 2502, 2503, 2504, 2505, 2506, 2507, 2508, 2509, 2510, 2511, 2512, 2513, 2514, 2515, 2516, 2517, 2518, 2519, 2520, 2521, 2522, 2523, 2524, 2525, 2526, 2223, 804, 2224, 2262, 999, 2716, 2601, 2602, 2603, 2604, 2605, 2606, 2607, 2608, 2609, 2610, 2611, 2612, 2613, 2614, 2615, 2616, 2617, 2618, 2619, 2620, 2621, 2622, 2623, 2624, 2625, 2626, 2225, 2229, 2226, 2246 },
{ 3199, 3214, 3228, 2275, 3219, 2271, 3218, 3217, 3221, 3222, 3223, 3225, 3211, 3224, 3210, 3220, 3200, 3201, 3202, 3203, 3204, 3205, 3206, 3207, 3208, 3209, 3212, 3213, 2241, 3226, 2242, 3215, 2273, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015, 3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, 3024, 3025, 3026, 2223, 804, 2224, 2262, 999, 3216, 3101, 3102, 3103, 3104, 3105, 3106, 3107, 3108, 3109, 3110, 3111, 3112, 3113, 3114, 3115, 3116, 3117, 3118, 3119, 3120, 3121, 3122, 3123, 3124, 3125, 3126, 2225, 2229, 2226, 2246 }}

ASCII to Hershey Character Number mapping array.

hersheyFontAscii[j][i] will map ASCII character i to a hershey character number that represetns that character. The j index can range from 0 upto 4, and each reprsents a hershey "Font" – named in the .

Definition at line 28 of file hersheyFont.hpp.

Referenced by mjr::ramCanvasTpl< colorT, intCrdT, fltCrdT, enableDrawModes >::drawString().

◆ chars

herChar mjr::hershey::chars[3935]
staticconstexpr

Data for each hershey font

Definition at line 35 of file hersheyFont.hpp.

Referenced by mjr::ramCanvasTpl< colorT, intCrdT, fltCrdT, enableDrawModes >::drawHersheyGlyph().


The documentation for this class was generated from the following file: