-/*
- * Some styles do not provide all flavours of accidentals, e.g. there
- * is currently no sharp accidental in vaticana style. In these cases
- * this function falls back to one of the other styles.
- */
-String
-Accidental_interface::get_fontcharname(String style, int alteration)
-{
- if (style == "hufnagel")
- switch (alteration)
- {
- case -2: return "-2";
- case -1: return "hufnagel-1";
- case 0: return "vaticana0";
- case 1: return "mensural1";
- case 2: return "2";
- }
- if (style == "medicaea")
- switch (alteration)
- {
- case -2: return "-2";
- case -1: return "medicaea-1";
- case 0: return "vaticana0";
- case 1: return "mensural1";
- case 2: return "2";
- }
- if (style == "vaticana")
- switch (alteration)
- {
- case -2: return "-2";
- case -1: return "vaticana-1";
- case 0: return "vaticana0";
- case 1: return "mensural1";
- case 2: return "2";
- }
- if (style == "mensural")
- switch (alteration)
- {
- case -2: return "-2";
- case -1: return "mensural-1";
- case 0: return "vaticana0";
- case 1: return "mensural1";
- case 2: return "2";
- }
- if (style == "neo_mensural")
- style = ""; // currently same as default
- if (style == "default")
- style = "";
- return style + to_string (alteration);