Within my stylesheet, I have defined the following:
@font-face {
font-family: 'light';
src: url('Fonts/HelveticaNeueLTStd-Lt.otf') format('opentype');
}
Now, in my C# code behind, I am attempting to assign the class like so:
row.CssClass = light;
However, I am encountering a compile error:
The name 'light' does not exist in the current context
My question is whether it is feasible to reference a CSS class with @font-face directly from C# codebehind.
UPDATE
This is my latest attempt at using this - I have experimented with the following:
.lightfontface {
font-family: 'light';
}
@font-face {
font-family: 'light';
src: url('Fonts/HelveticaNeueLTStd-Lt.otf') format('opentype');
}
row.CssClass = lightfontface;