OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
anonymous_namespace{EmbossStyleManager.cpp} Namespace Reference

For store/load emboss style to/from AppConfig. More...

Typedefs

using HorizontalAlignToName = boost::bimap<FontProp::HorizontalAlign, std::string_view>
using VerticalAlignToName = boost::bimap<FontProp::VerticalAlign, std::string_view>
using Section = std::map<std::string,std::string>

Functions

void store_style_index (AppConfig &cfg, size_t index)
::std::optional< size_t > load_style_index (const AppConfig &cfg)
StyleManager::Styles load_styles (const AppConfig &cfg)
void store_styles (AppConfig &cfg, const StyleManager::Styles &styles)
void make_unique_name (const StyleManager::Styles &styles, std::string &name)
std::string create_section_name (unsigned index)
bool read (const Section &section, const std::string &key, bool &value)
bool read (const Section &section, const std::string &key, Slic3r::FontProp::HorizontalAlign &value)
bool read (const Section &section, const std::string &key, Slic3r::FontProp::VerticalAlign &value)
bool read (const Section &section, const std::string &key, float &value)
bool read (const Section &section, const std::string &key, std::optional< int > &value)
bool read (const Section &section, const std::string &key, std::optional< unsigned int > &value)
bool read (const Section &section, const std::string &key, std::optional< float > &value)
std::optional< StyleManager::Style > load_style (const Section &app_cfg_section)
void store_style (AppConfig &cfg, const StyleManager::Style &s, unsigned index)

Variables

const HorizontalAlignToName horizontal_align_to_name
const VerticalAlignToName vertical_align_to_name
const std::string APP_CONFIG_FONT_NAME = "name"
const std::string APP_CONFIG_FONT_DESCRIPTOR = "descriptor"
const std::string APP_CONFIG_FONT_LINE_HEIGHT = "line_height"
const std::string APP_CONFIG_FONT_DEPTH = "depth"
const std::string APP_CONFIG_FONT_USE_SURFACE = "use_surface"
const std::string APP_CONFIG_PER_GLYPH = "per_glyph"
const std::string APP_CONFIG_VERTICAL_ALIGN = "vertical_align"
const std::string APP_CONFIG_HORIZONTAL_ALIGN = "horizontal_align"
const std::string APP_CONFIG_FONT_BOLDNESS = "boldness"
const std::string APP_CONFIG_FONT_SKEW = "skew"
const std::string APP_CONFIG_FONT_DISTANCE = "distance"
const std::string APP_CONFIG_FONT_ANGLE = "angle"
const std::string APP_CONFIG_FONT_COLLECTION = "collection"
const std::string APP_CONFIG_FONT_CHAR_GAP = "char_gap"
const std::string APP_CONFIG_FONT_LINE_GAP = "line_gap"
const std::string APP_CONFIG_ACTIVE_FONT = "active_font"

Detailed Description

For store/load emboss style to/from AppConfig.

Typedef Documentation

◆ HorizontalAlignToName

using anonymous_namespace{EmbossStyleManager.cpp}::HorizontalAlignToName = boost::bimap<FontProp::HorizontalAlign, std::string_view>

◆ Section

using anonymous_namespace{EmbossStyleManager.cpp}::Section = std::map<std::string,std::string>

◆ VerticalAlignToName

using anonymous_namespace{EmbossStyleManager.cpp}::VerticalAlignToName = boost::bimap<FontProp::VerticalAlign, std::string_view>

Function Documentation

◆ create_section_name()

std::string anonymous_namespace{EmbossStyleManager.cpp}::create_section_name ( unsigned index)
583{
584 return AppConfig::SECTION_EMBOSS_STYLE + ':' + std::to_string(index);
585}
static const std::string SECTION_EMBOSS_STYLE
Definition AppConfig.hpp:410

References create_section_name(), and Slic3r::AppConfig::SECTION_EMBOSS_STYLE.

Referenced by create_section_name(), load_styles(), store_style(), and store_styles().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ load_style()

std::optional< StyleManager::Style > anonymous_namespace{EmbossStyleManager.cpp}::load_style ( const Section & app_cfg_section)
697{
698 auto path_it = app_cfg_section.find(APP_CONFIG_FONT_DESCRIPTOR);
699 if (path_it == app_cfg_section.end())
700 return {};
701
704 FontProp& fp = s.prop;
705
706 s.path = path_it->second;
708 auto name_it = app_cfg_section.find(APP_CONFIG_FONT_NAME);
709 const std::string default_name = "font_name";
710 s.name = (name_it == app_cfg_section.end()) ? default_name : name_it->second;
711
712 read(app_cfg_section, APP_CONFIG_FONT_LINE_HEIGHT, fp.size_in_mm);
713 float depth = 1.;
714 read(app_cfg_section, APP_CONFIG_FONT_DEPTH, depth);
715 ep.depth = depth;
716 read(app_cfg_section, APP_CONFIG_FONT_USE_SURFACE, ep.use_surface);
717 read(app_cfg_section, APP_CONFIG_PER_GLYPH, fp.per_glyph);
718 read(app_cfg_section, APP_CONFIG_HORIZONTAL_ALIGN, fp.align.first);
719 read(app_cfg_section, APP_CONFIG_VERTICAL_ALIGN, fp.align.second);
720 read(app_cfg_section, APP_CONFIG_FONT_BOLDNESS, fp.boldness);
721 read(app_cfg_section, APP_CONFIG_FONT_SKEW, fp.skew);
722 read(app_cfg_section, APP_CONFIG_FONT_DISTANCE, s.distance);
723 read(app_cfg_section, APP_CONFIG_FONT_ANGLE, s.angle);
725 read(app_cfg_section, APP_CONFIG_FONT_CHAR_GAP, fp.char_gap);
726 read(app_cfg_section, APP_CONFIG_FONT_LINE_GAP, fp.line_gap);
727 return s;
728}
static EmbossStyle::Type get_current_type()
Definition WxFontUtils.cpp:120
const std::string APP_CONFIG_FONT_LINE_GAP
Definition EmbossStyleManager.cpp:578
const std::string APP_CONFIG_FONT_DESCRIPTOR
Definition EmbossStyleManager.cpp:565
const std::string APP_CONFIG_FONT_SKEW
Definition EmbossStyleManager.cpp:573
const std::string APP_CONFIG_FONT_ANGLE
Definition EmbossStyleManager.cpp:575
const std::string APP_CONFIG_VERTICAL_ALIGN
Definition EmbossStyleManager.cpp:570
const std::string APP_CONFIG_FONT_DISTANCE
Definition EmbossStyleManager.cpp:574
const std::string APP_CONFIG_FONT_BOLDNESS
Definition EmbossStyleManager.cpp:572
const std::string APP_CONFIG_FONT_NAME
Definition EmbossStyleManager.cpp:564
const std::string APP_CONFIG_PER_GLYPH
Definition EmbossStyleManager.cpp:569
const std::string APP_CONFIG_FONT_LINE_HEIGHT
Definition EmbossStyleManager.cpp:566
bool read(const Section &section, const std::string &key, bool &value)
Definition EmbossStyleManager.cpp:588
const std::string APP_CONFIG_FONT_COLLECTION
Definition EmbossStyleManager.cpp:576
const std::string APP_CONFIG_FONT_DEPTH
Definition EmbossStyleManager.cpp:567
const std::string APP_CONFIG_HORIZONTAL_ALIGN
Definition EmbossStyleManager.cpp:571
const std::string APP_CONFIG_FONT_USE_SURFACE
Definition EmbossStyleManager.cpp:568
const std::string APP_CONFIG_FONT_CHAR_GAP
Definition EmbossStyleManager.cpp:577
Definition EmbossShape.hpp:21
bool use_surface
Definition EmbossShape.hpp:27
double depth
Definition EmbossShape.hpp:23
FontProp prop
Definition TextConfiguration.hpp:131
std::string path
Definition TextConfiguration.hpp:124
Type type
Definition TextConfiguration.hpp:128
std::string name
Definition TextConfiguration.hpp:120
User modifiable property of text style NOTE: OnEdit fix serializations: EmbossStylesSerializable,...
Definition TextConfiguration.hpp:22
std::optional< float > boldness
Definition TextConfiguration.hpp:34
std::optional< int > char_gap
Definition TextConfiguration.hpp:25
std::optional< float > skew
Definition TextConfiguration.hpp:39
Align align
Definition TextConfiguration.hpp:54
std::optional< unsigned int > collection_number
Definition TextConfiguration.hpp:43
bool per_glyph
Definition TextConfiguration.hpp:46
std::optional< int > line_gap
Definition TextConfiguration.hpp:29
float size_in_mm
Definition TextConfiguration.hpp:63
All connected with one style keep temporary data and caches for style.
Definition EmbossStyleManager.hpp:197
std::optional< float > distance
Definition EmbossStyleManager.hpp:204
EmbossProjection projection
Definition EmbossStyleManager.hpp:199
std::optional< float > angle
Definition EmbossStyleManager.hpp:210

References Slic3r::FontProp::align, Slic3r::GUI::Emboss::StyleManager::Style::angle, APP_CONFIG_FONT_ANGLE, APP_CONFIG_FONT_BOLDNESS, APP_CONFIG_FONT_CHAR_GAP, APP_CONFIG_FONT_COLLECTION, APP_CONFIG_FONT_DEPTH, APP_CONFIG_FONT_DESCRIPTOR, APP_CONFIG_FONT_DISTANCE, APP_CONFIG_FONT_LINE_GAP, APP_CONFIG_FONT_LINE_HEIGHT, APP_CONFIG_FONT_NAME, APP_CONFIG_FONT_SKEW, APP_CONFIG_FONT_USE_SURFACE, APP_CONFIG_HORIZONTAL_ALIGN, APP_CONFIG_PER_GLYPH, APP_CONFIG_VERTICAL_ALIGN, Slic3r::FontProp::boldness, Slic3r::FontProp::char_gap, Slic3r::FontProp::collection_number, Slic3r::EmbossProjection::depth, Slic3r::GUI::Emboss::StyleManager::Style::distance, Slic3r::GUI::WxFontUtils::get_current_type(), Slic3r::FontProp::line_gap, load_style(), Slic3r::EmbossStyle::name, Slic3r::EmbossStyle::path, Slic3r::FontProp::per_glyph, Slic3r::GUI::Emboss::StyleManager::Style::projection, Slic3r::EmbossStyle::prop, read(), Slic3r::FontProp::size_in_mm, Slic3r::FontProp::skew, Slic3r::EmbossStyle::type, and Slic3r::EmbossProjection::use_surface.

Referenced by load_style(), and load_styles().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ load_style_index()

std::optional< size_t > anonymous_namespace{EmbossStyleManager.cpp}::load_style_index ( const AppConfig & cfg)
774{
776 return {};
777
779 auto it = section.find(APP_CONFIG_ACTIVE_FONT);
780 if (it == section.end())
781 return {};
782
783 size_t active_font = static_cast<size_t>(std::atoi(it->second.c_str()));
784 // order in config starts with number 1
785 return active_font - 1;
786}
const std::map< std::string, std::string > & get_section(const std::string &section) const
Definition AppConfig.hpp:244
bool has_section(const std::string &section) const
Definition AppConfig.hpp:242
const std::string APP_CONFIG_ACTIVE_FONT
Definition EmbossStyleManager.cpp:580

References APP_CONFIG_ACTIVE_FONT, Slic3r::AppConfig::get_section(), Slic3r::AppConfig::has_section(), load_style_index(), and Slic3r::AppConfig::SECTION_EMBOSS_STYLE.

Referenced by load_style_index().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ load_styles()

StyleManager::Styles anonymous_namespace{EmbossStyleManager.cpp}::load_styles ( const AppConfig & cfg)
789{
791 // human readable index inside of config starts from 1 !!
792 unsigned index = 1;
793 std::string section_name = create_section_name(index);
794 while (cfg.has_section(section_name)) {
795 std::optional<StyleManager::Style> style_opt = load_style(cfg.get_section(section_name));
796 if (style_opt.has_value()) {
797 make_unique_name(result, style_opt->name);
798 result.emplace_back(*style_opt);
799 }
800
802 }
803 return result;
804}
std::vector< Style > Styles
Definition EmbossStyleManager.hpp:226
const char * section_name(ShortcutSection section)
Definition Shortcuts.cpp:248
std::string create_section_name(unsigned index)
Definition EmbossStyleManager.cpp:582
void make_unique_name(const StyleManager::Styles &styles, std::string &name)
Definition EmbossStyleManager.cpp:829
std::optional< StyleManager::Style > load_style(const Section &app_cfg_section)
Definition EmbossStyleManager.cpp:696

References create_section_name(), Slic3r::AppConfig::get_section(), Slic3r::AppConfig::has_section(), load_style(), load_styles(), make_unique_name(), and Slic3r::GUI::section_name().

Referenced by load_styles().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_unique_name()

void anonymous_namespace{EmbossStyleManager.cpp}::make_unique_name ( const StyleManager::Styles & styles,
std::string & name )
830{
831 auto is_unique = [&styles](const std::string &name){
832 for (const StyleManager::Style &it : styles)
833 if (it.name == name) return false;
834 return true;
835 };
836
837 // Style name can't be empty so default name is set
838 if (name.empty()) name = "Text style";
839
840 // When name is already unique, nothing need to be changed
841 if (is_unique(name)) return;
842
843 // when there is previous version of style name only find number
844 const char *prefix = " (";
845 const char suffix = ')';
846 auto pos = name.find_last_of(prefix);
847 if (name.c_str()[name.size() - 1] == suffix &&
848 pos != std::string::npos) {
849 // short name by ord number
850 name = name.substr(0, pos);
851 }
852
853 int order = 1; // start with value 2 to represents same font name
854 std::string new_name;
855 do {
856 new_name = name + prefix + std::to_string(++order) + suffix;
857 } while (!is_unique(new_name));
858 name = new_name;
859}
bool is_unique(const Points &points)
Definition Triangulation.cpp:67

References make_unique_name().

Referenced by load_styles(), and make_unique_name().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read() [1/7]

bool anonymous_namespace{EmbossStyleManager.cpp}::read ( const Section & section,
const std::string & key,
bool & value )
589{
590 auto item = section.find(key);
591 if (item == section.end())
592 return false;
593
594 value = true;
595 return true;
596}

References read().

Referenced by load_style(), read(), read(), read(), read(), read(), read(), and read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read() [2/7]

bool anonymous_namespace{EmbossStyleManager.cpp}::read ( const Section & section,
const std::string & key,
float & value )
629{
630 auto item = section.find(key);
631 if (item == section.end())
632 return false;
633 const std::string &data = item->second;
634 if (data.empty())
635 return false;
636 float value_;
637 fast_float::from_chars(data.c_str(), data.c_str() + data.length(), value_);
638 // read only non zero value
639 if (fabs(value_) <= std::numeric_limits<float>::epsilon())
640 return false;
641
642 value = value_;
643 return true;
644}

References read().

Here is the call graph for this function:

◆ read() [3/7]

bool anonymous_namespace{EmbossStyleManager.cpp}::read ( const Section & section,
const std::string & key,
Slic3r::FontProp::HorizontalAlign & value )
598 {
599 auto item = section.find(key);
600 if (item == section.end())
601 return false;
602
603 const std::string &data = item->second;
604 if (data.empty())
605 return false;
606
607 const auto& map = horizontal_align_to_name.right;
608 auto it = map.find(data);
609 value = (it != map.end()) ? it->second : Slic3r::FontProp::HorizontalAlign::center;
610 return true;
611}
const HorizontalAlignToName horizontal_align_to_name
Definition EmbossStyleManager.cpp:65
@ center
Definition TextConfiguration.hpp:49

References Slic3r::FontProp::center, horizontal_align_to_name, and read().

Here is the call graph for this function:

◆ read() [4/7]

bool anonymous_namespace{EmbossStyleManager.cpp}::read ( const Section & section,
const std::string & key,
Slic3r::FontProp::VerticalAlign & value )
613 {
614 auto item = section.find(key);
615 if (item == section.end())
616 return false;
617
618 const std::string &data = item->second;
619 if (data.empty())
620 return false;
621
622 const auto &map = vertical_align_to_name.right;
623 auto it = map.find(data);
624 value = (it != map.end()) ? it->second : Slic3r::FontProp::VerticalAlign::center;
625 return true;
626}
const VerticalAlignToName vertical_align_to_name
Definition EmbossStyleManager.cpp:71
@ center
Definition TextConfiguration.hpp:50

References Slic3r::FontProp::center, read(), and vertical_align_to_name.

Here is the call graph for this function:

◆ read() [5/7]

bool anonymous_namespace{EmbossStyleManager.cpp}::read ( const Section & section,
const std::string & key,
std::optional< float > & value )
679{
680 auto item = section.find(key);
681 if (item == section.end())
682 return false;
683 const std::string &data = item->second;
684 if (data.empty())
685 return false;
686 float value_;
687 fast_float::from_chars(data.c_str(), data.c_str() + data.length(), value_);
688 // read only non zero value
689 if (fabs(value_) <= std::numeric_limits<float>::epsilon())
690 return false;
691
692 value = value_;
693 return true;
694}

References read().

Here is the call graph for this function:

◆ read() [6/7]

bool anonymous_namespace{EmbossStyleManager.cpp}::read ( const Section & section,
const std::string & key,
std::optional< int > & value )
647{
648 auto item = section.find(key);
649 if (item == section.end())
650 return false;
651 const std::string &data = item->second;
652 if (data.empty())
653 return false;
654 int value_ = std::atoi(data.c_str());
655 if (value_ == 0)
656 return false;
657
658 value = value_;
659 return true;
660}

References read().

Here is the call graph for this function:

◆ read() [7/7]

bool anonymous_namespace{EmbossStyleManager.cpp}::read ( const Section & section,
const std::string & key,
std::optional< unsigned int > & value )
663{
664 auto item = section.find(key);
665 if (item == section.end())
666 return false;
667 const std::string &data = item->second;
668 if (data.empty())
669 return false;
670 int value_ = std::atoi(data.c_str());
671 if (value_ <= 0)
672 return false;
673
674 value = static_cast<unsigned int>(value_);
675 return true;
676}

References read().

Here is the call graph for this function:

◆ store_style()

void anonymous_namespace{EmbossStyleManager.cpp}::store_style ( AppConfig & cfg,
const StyleManager::Style & s,
unsigned index )
731{
732 const EmbossProjection &ep = s.projection;
733 Section data;
734 data[APP_CONFIG_FONT_NAME] = s.name;
736 const FontProp &fp = s.prop;
737 data[APP_CONFIG_FONT_LINE_HEIGHT] = std::to_string(fp.size_in_mm);
738 data[APP_CONFIG_FONT_DEPTH] = std::to_string(ep.depth);
739 if (ep.use_surface)
740 data[APP_CONFIG_FONT_USE_SURFACE] = "true";
741 if (fp.per_glyph)
742 data[APP_CONFIG_PER_GLYPH] = "true";
743 if (fp.align.first != FontProp::HorizontalAlign::center)
744 data[APP_CONFIG_HORIZONTAL_ALIGN] = horizontal_align_to_name.left.find(fp.align.first)->second;
745 if (fp.align.second != FontProp::VerticalAlign::center)
746 data[APP_CONFIG_VERTICAL_ALIGN] = vertical_align_to_name.left.find(fp.align.second)->second;
747 if (fp.boldness.has_value())
748 data[APP_CONFIG_FONT_BOLDNESS] = std::to_string(*fp.boldness);
749 if (fp.skew.has_value())
750 data[APP_CONFIG_FONT_SKEW] = std::to_string(*fp.skew);
751 if (s.distance.has_value())
752 data[APP_CONFIG_FONT_DISTANCE] = std::to_string(*s.distance);
753 if (s.angle.has_value())
754 data[APP_CONFIG_FONT_ANGLE] = std::to_string(*s.angle);
755 if (fp.collection_number.has_value())
756 data[APP_CONFIG_FONT_COLLECTION] = std::to_string(*fp.collection_number);
757 if (fp.char_gap.has_value())
758 data[APP_CONFIG_FONT_CHAR_GAP] = std::to_string(*fp.char_gap);
759 if (fp.line_gap.has_value())
760 data[APP_CONFIG_FONT_LINE_GAP] = std::to_string(*fp.line_gap);
761 cfg.set_section(create_section_name(index), std::move(data));
762}
void set_section(const std::string &section, const std::map< std::string, std::string > &data)
Definition AppConfig.hpp:246
std::map< std::string, std::string > Section
Definition EmbossStyleManager.cpp:562

References Slic3r::FontProp::align, Slic3r::GUI::Emboss::StyleManager::Style::angle, APP_CONFIG_FONT_ANGLE, APP_CONFIG_FONT_BOLDNESS, APP_CONFIG_FONT_CHAR_GAP, APP_CONFIG_FONT_COLLECTION, APP_CONFIG_FONT_DEPTH, APP_CONFIG_FONT_DESCRIPTOR, APP_CONFIG_FONT_DISTANCE, APP_CONFIG_FONT_LINE_GAP, APP_CONFIG_FONT_LINE_HEIGHT, APP_CONFIG_FONT_NAME, APP_CONFIG_FONT_SKEW, APP_CONFIG_FONT_USE_SURFACE, APP_CONFIG_HORIZONTAL_ALIGN, APP_CONFIG_PER_GLYPH, APP_CONFIG_VERTICAL_ALIGN, Slic3r::FontProp::boldness, Slic3r::FontProp::center, Slic3r::FontProp::char_gap, Slic3r::FontProp::collection_number, create_section_name(), Slic3r::EmbossProjection::depth, Slic3r::GUI::Emboss::StyleManager::Style::distance, horizontal_align_to_name, Slic3r::FontProp::line_gap, Slic3r::EmbossStyle::name, Slic3r::EmbossStyle::path, Slic3r::FontProp::per_glyph, Slic3r::GUI::Emboss::StyleManager::Style::projection, Slic3r::EmbossStyle::prop, Slic3r::AppConfig::set_section(), Slic3r::FontProp::size_in_mm, Slic3r::FontProp::skew, store_style(), Slic3r::EmbossProjection::use_surface, and vertical_align_to_name.

Referenced by store_style(), and store_styles().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ store_style_index()

void anonymous_namespace{EmbossStyleManager.cpp}::store_style_index ( AppConfig & cfg,
size_t index )
765{
766 // store actual font index
767 // active font first index is +1 to correspond with section name
768 Section data;
769 data[APP_CONFIG_ACTIVE_FONT] = std::to_string(index);
770 cfg.set_section(AppConfig::SECTION_EMBOSS_STYLE, std::move(data));
771}

References APP_CONFIG_ACTIVE_FONT, Slic3r::AppConfig::SECTION_EMBOSS_STYLE, Slic3r::AppConfig::set_section(), and store_style_index().

Referenced by store_style_index().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ store_styles()

void anonymous_namespace{EmbossStyleManager.cpp}::store_styles ( AppConfig & cfg,
const StyleManager::Styles & styles )
807{
809 // store styles
810 unsigned index = 1;
811 for (const StyleManager::Style &style : styles) {
812 // skip file paths + fonts from other OS(loaded from .3mf)
813 assert(style.type == current_type);
814 if (style.type != current_type)
815 continue;
816 store_style(cfg, style, index);
817 ++index;
818 }
819
820 // remove rest of font sections (after deletation)
821 std::string section_name = create_section_name(index);
822 while (cfg.has_section(section_name)) {
825 ++index;
826 }
827}
#define style
Definition WipeTowerDialog.cpp:101
void clear_section(const std::string &section)
Definition AppConfig.hpp:248
void store_style(AppConfig &cfg, const StyleManager::Style &s, unsigned index)
Definition EmbossStyleManager.cpp:730
Type
Definition TextConfiguration.hpp:137

References Slic3r::AppConfig::clear_section(), create_section_name(), Slic3r::GUI::WxFontUtils::get_current_type(), Slic3r::AppConfig::has_section(), Slic3r::GUI::section_name(), store_style(), store_styles(), and style.

Referenced by store_styles().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ APP_CONFIG_ACTIVE_FONT

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_ACTIVE_FONT = "active_font"

◆ APP_CONFIG_FONT_ANGLE

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_ANGLE = "angle"

Referenced by load_style(), and store_style().

◆ APP_CONFIG_FONT_BOLDNESS

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_BOLDNESS = "boldness"

Referenced by load_style(), and store_style().

◆ APP_CONFIG_FONT_CHAR_GAP

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_CHAR_GAP = "char_gap"

Referenced by load_style(), and store_style().

◆ APP_CONFIG_FONT_COLLECTION

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_COLLECTION = "collection"

Referenced by load_style(), and store_style().

◆ APP_CONFIG_FONT_DEPTH

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_DEPTH = "depth"

Referenced by load_style(), and store_style().

◆ APP_CONFIG_FONT_DESCRIPTOR

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_DESCRIPTOR = "descriptor"

Referenced by load_style(), and store_style().

◆ APP_CONFIG_FONT_DISTANCE

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_DISTANCE = "distance"

Referenced by load_style(), and store_style().

◆ APP_CONFIG_FONT_LINE_GAP

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_LINE_GAP = "line_gap"

Referenced by load_style(), and store_style().

◆ APP_CONFIG_FONT_LINE_HEIGHT

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_LINE_HEIGHT = "line_height"

Referenced by load_style(), and store_style().

◆ APP_CONFIG_FONT_NAME

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_NAME = "name"

Referenced by load_style(), and store_style().

◆ APP_CONFIG_FONT_SKEW

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_SKEW = "skew"

Referenced by load_style(), and store_style().

◆ APP_CONFIG_FONT_USE_SURFACE

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_USE_SURFACE = "use_surface"

Referenced by load_style(), and store_style().

◆ APP_CONFIG_HORIZONTAL_ALIGN

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_HORIZONTAL_ALIGN = "horizontal_align"

Referenced by load_style(), and store_style().

◆ APP_CONFIG_PER_GLYPH

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_PER_GLYPH = "per_glyph"

Referenced by load_style(), and store_style().

◆ APP_CONFIG_VERTICAL_ALIGN

const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_VERTICAL_ALIGN = "vertical_align"

Referenced by load_style(), and store_style().

◆ horizontal_align_to_name

const HorizontalAlignToName anonymous_namespace{EmbossStyleManager.cpp}::horizontal_align_to_name
Initial value:
=
boost::assign::list_of<HorizontalAlignToName::relation>
(FontProp::HorizontalAlign::left, "left")
(FontProp::HorizontalAlign::center, "center")
(FontProp::HorizontalAlign::right, "right")

Referenced by read(), and store_style().

◆ vertical_align_to_name

const VerticalAlignToName anonymous_namespace{EmbossStyleManager.cpp}::vertical_align_to_name
Initial value:
=
boost::assign::list_of<VerticalAlignToName::relation>
(FontProp::VerticalAlign::top, "top")
(FontProp::VerticalAlign::center, "middle")
(FontProp::VerticalAlign::bottom, "bottom")

Referenced by read(), and store_style().