- if (weight == ly_symbol2scm ("bold"))
- {
- pw = PANGO_WEIGHT_BOLD;
- }
- if (weight == ly_symbol2scm ("heavy"))
- {
- pw = PANGO_WEIGHT_HEAVY;
- }
- if (weight == ly_symbol2scm ("ultrabold"))
- {
- pw = PANGO_WEIGHT_ULTRABOLD;
- }
- if (weight == ly_symbol2scm ("light"))
- {
- pw = PANGO_WEIGHT_LIGHT;
- }
- if (weight == ly_symbol2scm ("ultralight"))
- {
- pw = PANGO_WEIGHT_ULTRALIGHT;
- }
+ if (scm_is_eq (weight, ly_symbol2scm ("bold")))
+ pw = PANGO_WEIGHT_BOLD;
+ if (scm_is_eq (weight, ly_symbol2scm ("heavy")))
+ pw = PANGO_WEIGHT_HEAVY;
+ if (scm_is_eq (weight, ly_symbol2scm ("ultrabold")))
+ pw = PANGO_WEIGHT_ULTRABOLD;
+ if (scm_is_eq (weight, ly_symbol2scm ("light")))
+ pw = PANGO_WEIGHT_LIGHT;
+ if (scm_is_eq (weight, ly_symbol2scm ("ultralight")))
+ pw = PANGO_WEIGHT_ULTRALIGHT;