Descriptionchoosing appropriate flag for shortened stems
Some stems are shorter than usual and require
special shortened flags.
This code searches through available flag variants
and chooses the best one.
extracting info about available flag glyphs
We need to know what length variants of flags
are available in the font used -
this might change with time and/or font used,
so it cannot be hardcoded.
Adding some shorter flags for testing
These flags are very rough and used only
to see if c++ code is indeed working.
Flag functions instead of defining glyphs directly
We will need many length variants of every flag.
Therefore instead of writing flag code directly
in glyph definition, it should be written as
a function and called back later as appropriate.
The argument shortening is the amount the flag
should be shorter than default.
As for now it is used in a very primitive way,
only to demonstrate the shortening effect
and to test c++ code on something.
Patch Set 1 #
Total comments: 28
Patch Set 2 : mostly fixing whitespace #Patch Set 3 : add a warning in mf file about glyph naming #Patch Set 4 : adding regtests #
Total comments: 12
Patch Set 5 : whitespace fix #Patch Set 6 : style nitpicks #
MessagesTotal messages: 13
|