I'm currently facing a challenge with embedding multiple fonts in a spark RichText component. Specifically, I am unsure about how to proceed with displaying bold font using <b>
tags in HTML. The font I am working with has separate regular and bold character sets stored in different .ttf files.
Is it possible to define more than one font family in CSS for a single component?
Below is a snippet of my current stylesheet...
@font-face {
src: url("/styles/fonts/FontRg.ttf");
fontFamily: FontRg_CFF;
fontStyle: normal;
fontWeight: normal;
embedAsCFF: true;
}
@font-face {
src: url("/styles/fonts/FontRgBd.ttf");
fontFamily: FontRgBd_CFF;
fontStyle: normal;
fontWeight: normal;
embedAsCFF: true;
}
s|RichText {
font-family: FontRg_CFF;
font-size: 16;
}
Any assistance on this matter would be greatly appreciated!