MCPcopy Create free account
hub / github.com/microsoft/SandDance / setTextStyle

Function setTextStyle

docs/app/js/sanddance-app.js:105577–105582  ·  view source on GitHub ↗
(ctx, fontFamily, fontSize, fontWeight)

Source from the content-addressed store, hash-verified

105575 for(var i = 0; i < alphaChannel.length; i++)imageData.data[4 * i + 3] = alphaChannel[i];
105576}
105577function setTextStyle(ctx, fontFamily, fontSize, fontWeight) {
105578 ctx.font = "".concat(fontWeight, " ").concat(fontSize, "px ").concat(fontFamily);
105579 ctx.fillStyle = "#000";
105580 ctx.textBaseline = "baseline";
105581 ctx.textAlign = "left";
105582}
105583var FontAtlasManager = function() {
105584 function FontAtlasManager1(gl) {
105585 (0, _classCallCheckDefault.default)(this, FontAtlasManager1);

Callers 1

sanddance-app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected