Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Set font weight for a custom classification

$
0
0
I posted the same question at StackOverflow, but thought I will ask here too. I cannot find a way to set non Bold font weight for custom classification in VSX. I tried to use TextFormattingRunProperties.SetTypeFace and a couple of system fonts with unregular weight in the code below : 

...
var formatting = classificationFormatMap.GetExplicitTextProperties(classificationType);
// newTypeFace is a one of System fonts with non Normal weight, which was received before    
formatting = formatting.SetTypeface(newTypeFace); 
classificationFormatMap.SetExplicitTextProperties(classificationType, formatting);
but weight didn't affect in the visual studio text editor window. However, the font families and styles were applied very well.

Has anyone idea why SetTypeFace with weight doesn't work and how to sent font weight? Did I miss something?


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>