Dmitri Ovodok
af5abe41d0
fix #276354 : lookup character codes in SMuFL code table if no font-specific symbol is found
...
This commit does three things:
1) Constructs a code table for SMuFL symbols that is common to all
used fonts. The table is constructed from fonts/smufl/glyphnames.json
2) Replaces repeated calls to the object representing that json file
by a lookup in the code table obtained from that file. This is simpler
to reuse and avoids unnecessary repeated string parsing operations.
3) The fix itself: ScoreFont::toString now looks for a symbol
in the common SMuFL table if nothing is found in the font itself.
That way a correct code for the queried symbol can be returned even
if the font itself is not able to render it.
Previously -1 was returned which led to adding symbols which cannot
be correctly displayed by any font at all.
2018-11-16 14:25:22 +02:00
ws
10ebbb9080
update text style implementation
2018-08-01 11:46:35 +02:00
ws
33d1cd7fb4
rename StyleIdx -> Sid and P_ID -> Pid
2018-03-27 15:36:00 +02:00
Werner Schweer
8c67df20ab
fix visual test emmentaler-4, wrong articulation
2017-12-19 09:18:22 +01:00
Werner Schweer
dd97f24f77
remove CharFormatType
2017-05-22 15:27:16 +02:00
Werner Schweer
cf42a3a377
fix #179926 : add scale property for time signature
2017-03-09 13:37:53 +01:00
Werner Schweer
5433d719d9
replace TextStyle by SubStyle
2017-01-16 20:59:21 +01:00
Werner Schweer
6e7e05aaec
impl. staff type changes
2016-12-18 14:31:34 +01:00
lasconic
e8b7932ea5
fix #138706 : Draw brace from musical font instead of hardcoded
2016-11-15 17:24:15 +01:00
lasconic
cc0333ce37
fix #137101 : When changing score font, MuseScore should obey engraving defaults provided by the font metadata
2016-10-12 15:13:29 +02:00
lasconic
855d2a6fac
Font fallback is now an option. Use the correct font metadata when using the font fallback
2016-10-07 13:21:05 +02:00
Joachim Schmitz
3e4daad2d0
translate selected symbol names for use in palettes and status bar
...
following b5516f8
(for Breaths and Caesuras) and 8c18761
, c7f876a
(for Accidentals)
As well as a workaround for Qt lupdate bug #35164 ,
see bug https://bugreports.qt.io/browse/QTBUG-35164
May need explicit use of compiler option `-finput-charset=utf-8`.
On platforms/implementations not supporting UTF-8 in C++ source code we
may be in trouble.
2016-09-29 17:00:58 +02:00
lasconic
f966b08d77
add more F and C clefs, refactor clef.cpp and use symId and line when possible
2016-09-29 01:14:03 +02:00
Werner Schweer
1e6beedc16
use property type SYMID for property SYMBOL
2016-09-19 13:59:57 +02:00
Werner Schweer
b5516f8a7b
fix #108616 add more breath mark /caesura symbols to palette
2016-09-19 11:28:55 +02:00
lasconic
9ef2f130e2
fix #125126 : add 4-string tablature clef. Also add serif version. Use a single glyphnames.json from smufl
2016-09-18 18:37:42 +02:00
ws
626ae901b4
fix #111576 : system dividers dont work properly
2016-05-25 15:30:10 +02:00
lasconic
7242b66160
update symbol list for SMuFL 1.20 c20330a
2016-05-12 10:41:34 +02:00
ws
9f933d8503
Layout reorganization
2016-04-13 11:05:04 +02:00
ws
d8e4373435
make DPI=72 constant
2015-11-16 14:24:47 +01:00
lasconic
18b61e790b
Improve F2 text symbol palette
2015-09-02 12:13:58 +02:00
lasconic
4505c8daa7
remove unicode symbols
2015-07-02 19:34:34 +02:00
ws
eac0ed02f8
fix #65331 Bad screen scaling if staff scaled to 50% and zoom set to 200%
2015-06-16 11:27:09 +02:00
lasconic
805c54ef06
fix #59766 : Stems do not align with DO and TI note head
2015-06-03 10:23:01 +02:00
lasconic
d33f6381f0
fix #61931 : Gonville shows nothing in the master symbols palette
2015-05-27 12:16:31 +02:00
Joachim Schmitz
e3b3bf1b08
update to SMuFL and Bravura 1.18
...
added new symbols, removed some and updated others
2015-05-25 15:40:48 +02:00
ws
9e84592734
use qfont for print, not freetype rendering
2015-05-11 09:37:23 +02:00
ws
3e383af345
fix arpeggio and glissando lines
2015-05-08 08:59:34 +02:00
ws
f6b88f1395
fix trill rendering
2015-05-07 13:07:44 +02:00
ws
59d0e82e37
fix font cache
2015-05-06 13:55:40 +02:00
ws
0dbb47e9f9
add cache for freetype glyphs
2015-05-06 08:56:58 +02:00
ws
eff562ee3f
render score fonts with freetype
2015-05-06 08:56:58 +02:00
ws
9f0b0f8e95
use rawfont for symbols
2015-05-06 08:56:58 +02:00
lasconic
552836edd4
Delay the creation of QFont objects after complete startup. On some plaforms, QFont needs an initialized QScreen etc...
2014-11-06 15:02:41 +00:00
Andrey M. Tokarev
6da8c08728
Fix QFontMetricsF memory leak
2014-09-06 21:35:27 +04:00
Andrey M. Tokarev
e74af12d7c
Fix score font memory leak
2014-09-06 21:35:27 +04:00
lasconic
12e848f8a4
use unicode codepoint instead of SMuFL ones for tempo text since they are baseline aligned
2014-08-18 19:38:38 +02:00
lasconic
d7e5a30ad0
fix #27986 : position of dot in tempo text
2014-07-28 16:10:12 +02:00
ws
b75ef23fdd
change dynamics again to use <sym>; <sym> now uses the score text font
2014-07-26 11:55:45 +02:00
ws
531b0c1fc0
add style option for MusicalTexFont
2014-07-26 11:55:45 +02:00
ws
1715913571
honor current score font for dynamics
2014-07-23 17:10:15 +02:00
Joachim Schmitz
b5c97a0636
change enum class SymId back to int
...
the memory saved is not worth the performance penalty
2014-06-26 11:49:07 +02:00
lasconic
bef2266469
update to SMuFL and Bravura 1.0
2014-06-17 19:51:39 +02:00
lasconic
ca31a50cb0
update to SMuFL 0.99
2014-06-03 19:03:53 +02:00
Joachim Schmitz
7043cdaac5
convert "enum class" to "enum class : char"
...
or "enum class : signed char" or even "enum class: short", whatever/whenever feasible on all exsting "enum class" that don't have it yet, also fixing some signed vs. unadorned char. This
should reduce the memory footprint.
2014-05-23 10:35:15 +02:00
Marc Sabatella
04c3ced6d6
migrate code to use cutOuts
2014-05-12 11:15:19 -06:00
lasconic
0d6e381aec
update to SMuFL 0.9
2014-04-18 18:55:33 +02:00
lasconic
1175da6303
update to bravura 0.85
2014-03-15 12:31:29 +01:00
lasconic
28d62d1d95
delay construction of QFont
2014-02-28 12:00:32 +01:00
lasconic
2d6d0b87cf
rename glyphs noteEightUp to note8thUp to be conform to SMuFL 0.8
2014-02-21 10:59:50 +01:00