i = j;
while(i < font.length()) {
switch (font.charAt(i)) {
- case 'b': bold = true;
- case 'i': italic = true;
- case 'd': dotted_underline = true;
- case 'u': underline = true;
+ case 'b': bold = true; break;
+ case 'i': italic = true; break;
+ case 'd': dotted_underline = true; break;
+ case 'u': underline = true; break;
}
i++;
}