font

Gets or sets the StyleExpression object used to evaluate the style's font property. Alternatively a string or object defining a string style can be used. The getter will return the internal Expression or ConditionsExpression, which may differ from the value provided to the setter.

The expression must return a String.

This expression is only applicable to point features in a Vector tile.

const style = new Cesium3DTileStyle({
font : '(${Temperature} 90) ? "30px Helvetica" : "24px Helvetica"'
});
style.font.evaluate(feature); // returns a String
const style = new Cesium3DTileStyle();
// Override font expression with a custom function
style.font = {
evaluate : function(feature) {
return '24px Helvetica';
}
};

See also