-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continuation du récit - Objet Sentence
- Objet Sentence - Meilleure gestion de la police pour l'objet Word - Modifications diverses sur les deux classes Word et Line.
- Loading branch information
1 parent
f73337c
commit e654671
Showing
9 changed files
with
195 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
function setPolice(rct, police) { | ||
rct.police = police; | ||
} | ||
|
||
// Selon le choix (exemple : '24px'), deviendra la variable rct (RecitConsTantes) | ||
var fontConst = { | ||
'24px': { | ||
car: { // Caractère (lettre) | ||
size: 24, // Taille de la police | ||
color: "white", // Couleur | ||
height: 40, // Hauteur réelle du caractère | ||
margin: { // Marge... | ||
up: 12, // ... supérieure (size/2) | ||
down: 12, // ... inférieure | ||
}, | ||
}, | ||
police: { | ||
name: 'coupable_haut', // Police (par défaut coupable_haut) | ||
coupable_haut: { // Police coupable_haut en deux parties | ||
offset: { // Décalage y | ||
up: -2, // Distance en y pour la partie haute | ||
down: 19, // Distance en y pour la partie basse | ||
}, | ||
name: { // Nom des deux parties | ||
up: "DemiHautH", | ||
down: "DemiHautB", | ||
}, | ||
}, | ||
}, | ||
line: { // Ligne | ||
height: 64, // Hauteur | ||
nb: 1, // Nombre de lignes | ||
}, | ||
}, | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.