| 40 | | public: |
| 41 | | |
| 42 | | enum aspect_fix_mode |
| 43 | | { |
| 44 | | /* grow the width or height of the specified geo bbox to fill the map size. default behaviour. */ |
| 45 | | GROW_BBOX, |
| 46 | | /* grow the width or height of the map to accomodate the specified geo bbox. */ |
| 47 | | GROW_CANVAS, |
| 48 | | /* shrink the width or height of the specified geo bbox to fill the map size. */ |
| 49 | | SHRINK_BBOX, |
| 50 | | /* shrink the width or height of the map to accomodate the specified geo bbox. */ |
| 51 | | SHRINK_CANVAS, |
| 52 | | /* adjust the width of the specified geo bbox, leave height and map size unchanged */ |
| 53 | | ADJUST_BBOX_WIDTH, |
| 54 | | /* adjust the height of the specified geo bbox, leave width and map size unchanged */ |
| 55 | | ADJUST_BBOX_HEIGHT, |
| 56 | | /* adjust the width of the map, leave height and geo bbox unchanged */ |
| 57 | | ADJUST_CANVAS_WIDTH, |
| 58 | | /* adjust the height of the map, leave width and geo bbox unchanged */ |
| 59 | | ADJUST_CANVAS_HEIGHT |
| 60 | | }; |
| 61 | | private: |
| 157 | | /*! \brief Insert a fontset into the map. |
| 158 | | * @param name The name of the fontset. |
| 159 | | * @param style The fontset to insert. |
| 160 | | * @return true If success. |
| 161 | | * @return false If failure. |
| 162 | | */ |
| 163 | | bool insert_fontset(std::string const& name, FontSet const& fontset); |
| 164 | | |
| 165 | | /*! \brief Find a fontset. |
| 166 | | * @param name The name of the fontset. |
| 167 | | * @return The fontset if found. If not found return the default map fontset. |
| 168 | | */ |
| 169 | | FontSet const& find_fontset(std::string const& name) const; |
| 170 | | |