0
가능합니까? HTML :캔버스를 여러 줄 문자열의 특정 텍스트에 굵은 체로 추가하는 방법은 무엇입니까?
<canvas> </canvas>
JS :
var ctx = canvas.getContext('2d');
ctx.font = "10pt bold Courier";
var input ="99%" + "More teams partcipated in the contest of asia tournament"
ctx.fillText(input, 100, 100);
O/P : 99 서비스의 동적 데이터이다. 99 % - 대담하고
더 많은 팀이 아시아 경기 대회의 대회 //
각'ctx.fillText()'앞에'ctx.font'를 변경해야합니다. – PHPglue
@PHPglue 99 %와 같은 특정 텍스트를 변경하는 방법에 대해 혼란 스럽습니까? –
이 답변에 제공된 해결책을 시도하십시오. https://stackoverflow.com/questions/24163211/html5-canvas-api-italic-word – Lalit