├── chess_merida_unicode.ttf ├── LICENSE ├── main.css ├── README.md └── chess_merida_unicode.html /chess_merida_unicode.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xeyownt/chess_merida_unicode/HEAD/chess_merida_unicode.ttf -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /main.css: -------------------------------------------------------------------------------- 1 | /*============================================================================== 2 | * Main documentation style sheet for the HTMLTTChess package 3 | * 4 | * Copyright (C) 2007-2016 Michael Peeters 5 | * 6 | * This file is part of the HTMLTTChess package 7 | * . 8 | * 9 | * HTMLTTChess is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | * 14 | * HTMLTTChess is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License along 20 | * with this program; if not, write to the Free Software Foundation, Inc., 21 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 22 | * 23 | *============================================================================== 24 | */ 25 | 26 | @font-face { 27 | font-family: 'Chess Merida Unicode'; 28 | src: url(chess_merida_unicode.ttf); 29 | } 30 | 31 | #leftpane { 32 | clear: left; 33 | float: left; 34 | width: 10.5em; 35 | margin-top: 0ex; 36 | margin-right: 1ex; 37 | margin-bottom: 0; 38 | margin-left: 1ex; 39 | padding: 0 0 0 0; 40 | } 41 | 42 | #leftpane p, #leftpane li { 43 | font-size: 0.8em; 44 | text-align: justify; 45 | } 46 | 47 | #leftpane ul { 48 | margin: 0; 49 | padding: 0 1em; 50 | } 51 | 52 | #leftpane h2 { 53 | font-size: 1em; 54 | font-weight:bold; 55 | border-bottom: #5A87C3 2px dotted; 56 | color: #5A87C3; 57 | } 58 | 59 | #content { 60 | text-align: justify; 61 | margin: 0 0 0 12em; 62 | padding: 0 4% 0 4%; 63 | border-left: 2px solid #007664; 64 | } 65 | 66 | body { 67 | font-family: sans-serif; 68 | } 69 | 70 | #content h1, #content h2, #content div.footnote { 71 | margin-left: -3%; 72 | } 73 | 74 | #content h1 { 75 | color: #007664; 76 | border-bottom: #007664 solid 2px; 77 | } 78 | 79 | #content h2{ 80 | font-family: arial, helvetica, verdana; 81 | color: #5A87C3; 82 | border-bottom: #5A87C3 dotted 2px; 83 | } 84 | 85 | #content h3{ 86 | color: #CC0057; 87 | border-bottom: #CC0057 solid 1px; 88 | } 89 | 90 | #content h4{ 91 | color: black; 92 | font-weight: bold; 93 | text-decoration: underline; 94 | } 95 | 96 | #content p, #content li { 97 | text-align: justify; 98 | } 99 | 100 | #content li { 101 | margin: 0.2em 0em; 102 | } 103 | 104 | #content pre { 105 | color: green; 106 | white-space: pre; 107 | font-family: "Bitstream Vera Sans Mono", "Courier New", monospace; 108 | font-size: 0.8em; 109 | border: red dotted 1px; 110 | margin: 0% 5%; 111 | padding: 10px 10px; 112 | overflow: auto; 113 | } 114 | 115 | #content table.table1 { 116 | margin-left: 5%; 117 | border: none; 118 | } 119 | 120 | #content table.table1 td { 121 | border: none; 122 | } 123 | 124 | #content table.table2 { 125 | border-collapse: collapse; 126 | border: hidden; 127 | margin-left: 5%; 128 | } 129 | 130 | #content table.table2 td, #content table.table2 th { 131 | border: #CC0057 1px solid; 132 | padding: 10px 10px; 133 | } 134 | 135 | #content table.table2 th { 136 | font-weight: bold; 137 | } 138 | 139 | #content table.keymap { 140 | border-collapse: collapse; 141 | border: hidden; 142 | margin-left: 5%; 143 | empty-cells: show; 144 | } 145 | 146 | #content table.keymap .new { 147 | background-color: #FFC; 148 | } 149 | 150 | #content table.keymap td.c { 151 | border: #CC0057 1px solid; 152 | border-right: none; 153 | font: 1.4em "Chess Merida Unicode"; 154 | color: black; 155 | padding: 2px 5px 2px 10px 156 | } 157 | 158 | #content table.keymap td { 159 | border: #CC0057 1px solid; 160 | border-left: none; 161 | font-family: monospace; 162 | color: blue; 163 | padding: 2px 10px 2px 5px; 164 | text-align: center; 165 | } 166 | 167 | #content table.keymap th { 168 | border: #CC0057 1px solid; 169 | text-align: left; 170 | padding: 2px 5px; 171 | } 172 | 173 | #content code { 174 | font-family: monospace; 175 | background-color: #EEE; 176 | font-size: 1em; 177 | } 178 | 179 | #content code.kw { 180 | font-weight: bold; 181 | } 182 | 183 | #content var { 184 | font-style: italic; 185 | font-weight: bold; 186 | } 187 | 188 | #content em { 189 | color: #CC0057; 190 | font-style: italic; 191 | font-weight: bold; 192 | } 193 | 194 | #footnote { 195 | clear: left; 196 | border-top: #007664 2px solid; 197 | margin-top: 20px; 198 | } 199 | 200 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # The Chess Merida Unicode TrueType font 2 | 3 | ## Introduction 4 | 5 | **Chess Merida Unicode** is a TrueType font that was first designed by Armando Hernandez Marroquin in 6 | February 5, 1998. This package contains a new version of that font, with the major difference that the 7 | glyphs are now mapped to Unicode to allow portable usage in HTML. Actually I created this version so that 8 | it can be used along with the [HTMLTTChess](https://github.com/xeyownt/htmlttchess) script, a javascript 9 | I wrote to ease writing of chessboard positions in HTML. 10 | 11 | The font is renamed to Chess Merida Unicode in order to avoid confusion with the previous versions since 12 | the mapping Unicode is not compatible with the previous versions. 13 | 14 | ## Using the Chess Merida Unicode font with HTMLTTChess 15 | 16 | It is critical to use the version provided here to view chessboards generated by 17 | [HTMLTTChess](https://github.com/xeyownt/htmlttchess). Besides being remapped to Unicode, this version 18 | contains additional glyphs needed for the rendering of color chessboards. For this, either the font must 19 | be installed on the client, or delivered to the font via CSS webfonts. 20 | 21 | ## History and license information 22 | 23 | Armando Hernandez Marroquin released the font as freeware, so obviously this new version is freeware as 24 | well. I hope you'll find this version useful. This is actually my first step in the vast world of 25 | typography, so if you have comments or suggestion, don't hesitate to contact me. Of course, all credits 26 | related to the beauty of the fonts should go to Armando Hernandez Marroquin. If interested, you can find 27 | other fonts from him [here](http://www.dafont.com/armando-hernandez-marroquin.d420). 28 | 29 | ### v1.0 (February 5, 1998) 30 | * First version of the font (by Armando Hernandez Marroquin). 31 | * Mapping to Unicode. 32 | * Available [here](http://www.enpassant.dk/chess/downl/merid_tt.zip) or in first commit on 33 | [GitHub](https://github.com/xeyownt/chess_merida_unicode). 34 | 35 | ### v1.1 (August 12, 1998) 36 | * Second version of the font (by Armando Hernandez Marroquin). 37 | * Mapping to Symbol. 38 | * Extra figurine glyphs with different vertical alignment to allow in-text movement notation. 39 | 40 | ### v1.2 (August 13, 2007) 41 | * Third version of the font (by Michaël Peeters). 42 | * Mapping to Unicode. 43 | * Font renamed to Chess Merida Unicode to avoid mapping compatibility problem with the previous version. 44 | * Extra glyphs for top and right coordinates (simple / double border). 45 | * Extra glyphs for border-less coordinates. 46 | * Extra glyphs to allow color rendering in HTML (dark square and figure enveloppes). 47 | * Small fix on the black knight. 48 | * Modified keymap to increase compatibility across browsers. 49 | * Modified font metrics (to prevent as much as possible white pixel lines between board rows). 50 | * Redesigned coord. glyphs to use components instead for uniform rendering. 51 | * Redesigned border glyphs for better rendering at small resolution. 52 | * Manually hinted all coord. glyphs for better rendering and consistent weight at all resolutions. 53 | 54 | ## Installing the Chess Merida Unicode TrueType font 55 | 56 | The installation procedure is similar to any other fonts. Here are some more detailed instructions depending on your platform: 57 | 58 | Platform | Instructions 59 | ---------|-------------- 60 | Linux | On Linux, there are several possibilities. A way to do this, at least on my system (OpenSUSE 10.x), is to simply copy the file in directory `.fonts` in your home directory (ie. just type in a console `cp chess_merida_unicode.ttf ~/.fonts`). Please check that there is no other version of the font available on the system. Also it is safer to *quit and restart* your browser after installation.
Font rendering is greatly improved if *hinting/anti-aliasing* is activated. Please check your Linux distribution documentation for more information. 61 | Windows | To install the font on Windows, you simply have to copy the file `chess_merida_unicode.ttf` into the "fonts" directory of Windows main directory (typically `C:\Windows\Fonts`). In case you have an older version of the font already installed, you must first delete that version before installing the new one. Also it is safer to *quit and restart* your browser after installation.
On Windows XP, font rendering is greatly improved if *ClearType* is enabled on the client machine. Check out [Microsoft's online ClearType Tuner](http://www.microsoft.com/typography/ClearType/tuner/Step1.aspx) for more information. 62 | Mac OSX | You simply need to drag&drop the file in the fonts directory of system directory. Also it is safer to *quit and restart* your browser after installation. 63 | 64 | ## Keymap 65 | 66 | See file [chess_merida_unicode.html](chess_merida_unicode.html) for the complete keymap. 67 | 68 | [//]: # ( vim: set tw=105: ) 69 | -------------------------------------------------------------------------------- /chess_merida_unicode.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 32 | 33 | 34 | 35 | Chess Merida Unicode 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 |
44 | 45 | 46 |

The Chess Merida Unicode TrueType font

47 | 48 | 49 | 50 |

Introduction

51 | 52 | 53 |

Chess Merida Unicode is a TrueType font that was first designed by Armando Hernandez Marroquin in February 5, 1998. This package 54 | contains a new version of that font, with the major difference that the glyphs are now mapped to Unicode to allow portable usage in 55 | HTML. Actually I created this version so that it can be used along with the HTMLTTChess 56 | script, a javascript I wrote to ease writing of chessboard positions in HTML.

57 |

The font is renamed to Chess Merida Unicode in order to avoid confusion with the previous versions since the mapping Unicode is 58 | not compatible with the previous versions.

59 | 60 | 61 |

Using the Chess Merida Unicode font with HTMLTTChess

62 | 63 | 64 |

It is critical to use the version provided here to view chessboards generated by 65 | HTMLTTChess. Besides being remapped to Unicode, this version contains 66 | additional glyphs needed for the rendering of color chessboards. For this, either the font must be installed on the client, or 67 | delivered to the font via CSS webfonts.

68 | 69 | 70 |

History and license information

71 | 72 | 73 |

Armando Hernandez Marroquin released the font as freeware, so obviously this new version is freeware as well. 74 | I hope you'll find this version useful. This is actually my first step in the vast world of typography, so if you have comments or 75 | suggestion, don't hesitate to contact me. Of course, all credits 76 | related to the beauty of the fonts should go to Armando Hernandez Marroquin. If interested, 77 | you can find other fonts from him here.

78 | 79 | 80 |

v1.0 (February 5, 1998)

81 | 82 |
    83 |
  • First version of the font (by Armando Hernandez Marroquin).
  • 84 |
  • Mapping to Unicode.
  • 85 |
  • Available here or in first commit on 86 | GitHub.
  • 87 |
88 | 89 | 90 |

v1.1 (August 12, 1998)

91 | 92 |
    93 |
  • Second version of the font (by Armando Hernandez Marroquin).
  • 94 |
  • Mapping to Symbol.
  • 95 |
  • Extra figurine glyphs with different vertical alignment to allow in-text movement notation.
  • 96 |
97 | 98 | 99 |

v1.2 (August 13, 2007)

100 | 101 |
    102 |
  • Third version of the font (by Michaël Peeters).
  • 103 |
  • Mapping to Unicode.
  • 104 |
  • Font renamed to Chess Merida Unicode to avoid mapping compatibility problem with the previous version.
  • 105 |
  • Extra glyphs for top and right coordinates (simple / double border).
  • 106 |
  • Extra glyphs for border-less coordinates.
  • 107 |
  • Extra glyphs to allow color rendering in HTML (dark square and figure enveloppes).
  • 108 |
  • Small fix on the black knight.
  • 109 |
  • Modified keymap to increase compatibility across browsers.
  • 110 |
  • Modified font metrics (to prevent as much as possible white pixel lines between board rows).
  • 111 |
  • Redesigned coord. glyphs to use components instead for uniform rendering.
  • 112 |
  • Redesigned border glyphs for better rendering at small resolution.
  • 113 |
  • Manually hinted all coord. glyphs for better rendering and consistent weight at all resolutions.
  • 114 |
115 | 116 | 117 |

Installing the Chess Merida Unicode TrueType font

118 | 119 | 120 |

The installation procedure is similar to any other fonts. Here are some more detailed instructions depending on your platform:

121 | 122 | 123 | 124 | 125 | 131 | 132 | 133 | 134 | 141 | 142 | 143 | 144 | 147 | 148 |
Linux

On Linux, there are several possibilities. A way to do this, at least on my system (OpenSUSE 10.x), is to simply copy the file 126 | in directory .fonts in your home directory (ie. just type in a console cp chess_merida_unicode.ttf ~/.fonts). Please check that 127 | there is no other version of the font available on the system. Also it is safer to quit and restart your browser after installation.

128 |

Font rendering is greatly improved if hinting/anti-aliasing is activated. Please check your Linux distribution 129 | documentation for more information.

130 |
Windows

To install the font on Windows, you simply have to copy the file chess_merida_unicode.ttf into the "fonts" directory of 135 | Windows main directory (typically C:\Windows\Fonts). In case you have an older version of the font already installed, you must 136 | first delete that version before installing the new one. Also it is safer to quit and restart your browser after installation.

137 |

On Windows XP, font rendering is greatly improved if ClearType is enabled on the client machine. Check out 138 | Microsoft's online ClearType Tuner for more 139 | information.

140 |
Mac OS X

You simply need to drag&drop the file in the fonts directory of system directory. Also it is safer to quit and 145 | restart your browser after installation.

146 |
149 | 150 | 151 |

Keymap

152 | 153 | 154 |

This is the complete keymap for the Chess Merida Unicode font. The coding conventions for the keymap are:

155 |
    156 |
  • Mapping to existing Unicode character whenever possible (Chess symbol, full block...)
    157 | Exception for the Full Block character that is not correctly renderered in IE5.x and IE6.x.
  • 158 |
  • Mapping to Private Use Area (End User Subarea) otherwise: 159 |
      160 |
    • xE000-xE0FF board symbols on light square (for B&W and color rendering).
      161 | This section is empty in this version since all symbols are mapped to existing Unicode character.
    • 162 |
    • xE100-xE1FF board symbols on dark square (for B&W rendering).
    • 163 |
    • xE200-xE2FF enveloppe of board symbols (for color rendering).
    • 164 |
    • xE300-xE3FF Border drawing (for B&W rendering).
    • 165 |
    • xE400-xE4FF Other symbols.
    • 166 |
    167 |
  • 168 |
169 |

Highlighted glyphs are new in the last version.

170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 |
Board square   x00A0 xE100 xE200
Bullet x2022 xE122
X x2715 xE115
King x2654 xE154 x265A xE15A xE254 xE400
Queen x2655 xE155 x265B xE15B xE255 xE401
Rook x2656 xE156 x265C xE15C xE256 xE402
Bishop x2657 xE157 x265D xE15D xE257 xE403
Knight x2658 xE158 x265E xE15E xE258 xE404
Pawn x2659 xE159 x265F xE15F xE259 xE405
Row 1 1 1 xE310 xE320 xE340 xE350
Row 2 2 2 xE311 xE321 xE341 xE351
Row 3 3 3 xE312 xE322 xE342 xE352
Row 4 4 4 xE313 xE323 xE343 xE353
Row 5 5 5 xE314 xE324 xE344 xE354
Row 6 6 6 xE315 xE325 xE345 xE355
Row 7 7 7 xE316 xE326 xE346 xE356
Row 8 8 8 xE317 xE327 xE347 xE357
Column a a a xE318 xE328 xE348 xE358
Column b b b xE319 xE329 xE349 xE359
Column c c c xE31A xE32A xE34A xE35A
Column d d d xE31B xE32B xE34B xE35B
Column e e e xE31C xE32C xE34C xE35C
Column f f f xE31D xE32D xE34D xE35D
Column g g g xE31E xE32E xE34E xE35E
Column h h h xE31F xE32F xE34F xE35F
Border simple
249 | square/round corner
xE300 xE301 xE302 xE308 xE301 xE309
xE303 xE304 xE303 xE304
xE305 xE306 xE307 xE30A xE306 xE30B
Border double
259 | square/round corner
xE330 xE331 xE332 xE338 xE331 xE339
xE333 xE334 xE333 xE334
xE335 xE336 xE337 xE33A xE336 xE33B
Miscellaneous xE4FF xE4FE
271 | 272 |
273 | 274 | 275 | 276 | 277 | 278 | 279 | --------------------------------------------------------------------------------