WEDELMUSIC – GENERIC FONT HOWTO

In the last release of wedelmusic editor there are the possibility to insert several file containing user-defined fonts.

In the next the instruction for a successful creation/modification of the user-defined fonts (also called generic font) are presented.

In the present release of the wedeleditor 3 generic font are prearranged and the creation of new files are not fully implemented.

The files that the user can modify are:


Step to be performed for a new character implementation (in the existing files):
 

  1. Using fontographer the new character have to be created; .fon and .pfa files have to be generated and saved in moods/font directory
  2. milla file have to be modified for the management of the new char
  3. the .tbl file have to be updated by adding the new symbol parameters
  4. char position have to be set from the music editor (command Edit Table)

Step 1 – creation of a new character, generation of the .fon and .pfa files

At this point the new symbol have to be implemented in the music editor.

Step 2 – editing milla file

In order to allow the editor to load the new symbol some changes have to be made in the milla file. At the beginning of the file the group of generic fonts are defined. The group name has to be the same to the .fon file name. In the case the symbol is located in generic1.fog the group will be named generic1.

In the next a part of the milla file is shown. The line needed for the char 36 is shown in bold. Since the generic1 group was already present it is not necessary to insert it. The symbol name can be chose by the user, the group is the file name and the code have to be equal to the code displayed in Fontographer (the ASCII code) (we suppose to modify the char ‘ that is the number ‘36’). The numbers after DIM are no more used (in the updated milla file you don’t find them anymore).
 
 
DEFGROUP "generic1";

DEFGROUP "generic2";

DEFGROUP "generic3";
 
 

/***** Symbols definition ********/

// DEFSYM "gen1s1" GROUP="generic1" CODE=33 

DEFSYM "gen1s2" GROUP="generic1" CODE=34 

DEFSYM "gen1s3" GROUP="generic1" CODE=35 DIM=1,2,3,3,-9,-12;

DEFSYM "gen1s1" GROUP="generic1" CODE=33;

DEFSYM "gen2s1" GROUP="generic2" CODE=36 

DEFSYM "gen2s2" GROUP="generic2" CODE=37 DIM = 5,3,3,3,-7,-8;

DEFSYM "gen2s3" GROUP="generic2" CODE=38 

DEFSYM "gen2s4" GROUP="generic2" CODE=39 

DEFSYM "ournewsymbol" GROUP="generic1" CODE=36

DEFSYM "gen3s1" GROUP="generic3" CODE=33 

DEFSYM "gen3s2" GROUP="generic3" CODE=34 

/*************** Rules for the "generic1 group" ****************/

RULEIMM generic10 DEFAULT "generic1" RELNOTA OPPOSITETOSTEM;

RULEIMM generic11 ALTERNATIVE "generic1" RELNOTA ONSTEM;

immIF NOTE INSINGLELAYER THEN generic10;

immIF NOTE INMULTIVOICE THEN generic11;

RULEPOS generic12 "generic1" RELNOTA ONSPACE OUTSIDESTAFF DX=0 DY=0;

posIF OPPOSITETOSTEM THEN generic12;

posIF ONSTEM THEN generic12;


 

Step 3 – editing .tbl file

In order to manage the new symbol it has to be added in the .tbl file (i.e. generic1.tbl) in the moods/font directory.

You have only to add the symbol code followed by 6 numbers (you can put 6 zeros) and a ‘#’

33 5 5 5 5 -10 -5 sym33 #

34 8 5 5 5 -9 -9 sym34 #

35 12 10 5 5 -5 -13 sym35 #

36 0 0 0 0 0 0 our_symbol # // line added for the new symbol
 
 

Step 4 – Position adjustment

At this point the editor manages the new symbol but some adjustment has to be done if it has bad position.

Use Edit Table menu from the Format menu to perform the changes to the our_symbol. In the present version a draft preview are available.