html - Missing/Unusual font making the text overlap -


i have code generated font "helveticaneuelt pro 25 ultlt", not sure font resulting text gets overlapped:

<div style=" position:absolute; top:36pt; left:64.8pt; border:0pt solid black; width:507.8pt;height:125pt;">    <div align="left" style="line-height:0pt; ">  <span style="white-space:pre-wrap;  font:normal 34pt helveticaneuelt pro 25 ultlt; color:rgb(102,102,102);">my </span>  <span style="white-space:pre-wrap;  font:normal 34pt helveticaneuelt pro 25 ultlt; color:rgb(102,102,102);">name</span>  <span style="white-space:pre-wrap;  font:normal 34pt helveticaneuelt pro 25 ultlt; color:rgb(102,102,102);"> is</span>  </div>     <div align="left" style="line-height:0pt; ">  <span style="white-space:pre-wrap;  font:normal 30pt helveticaneuelt pro 25 ultlt; color:rgb(77,217,255);">david </span>  <span style="white-space:pre-wrap;  font:normal 30pt helveticaneuelt pro 25 ultlt; color:rgb(77,217,255);">soban</span>  </div>     </div>

whereas when change font arial, comes @ position.

<div style=" position:absolute; top:36pt; left:64.8pt; border:0pt solid black; width:507.8pt;height:125pt;">    <div align="left" style="line-height:0pt; ">  <span style="white-space:pre-wrap;  font:normal 34pt arial; color:rgb(102,102,102);">my </span>  <span style="white-space:pre-wrap;  font:normal 34pt arial; color:rgb(102,102,102);">name</span>  <span style="white-space:pre-wrap;  font:normal 34pt arial; color:rgb(102,102,102);"> is</span>  </div>     <div align="left" style="line-height:0pt; ">  <span style="white-space:pre-wrap;  font:normal 30pt arial; color:rgb(77,217,255);">david </span>  <span style="white-space:pre-wrap;  font:normal 30pt arial; color:rgb(77,217,255);">soban</span>  </div>     </div>

is there way set default font in case given font not available or incorrect? how make font work valid font.. have in system fonts still not working. have browser understanding or in general html doesn't support it.

set arial (or other default) font parent container , redefine in children style. if redefined font available it'll displayed, if not, it'll keep parent one.

<div style=" position:absolute; top:36pt; left:64.8pt; border:0pt solid black; width:507.8pt;height:125pt;">    <div align="left" style="line-height:0pt; font:normal 34pt arial;">  <span style="white-space:pre-wrap;  font:normal 34pt helveticaneuelt pro 25 ultlt; color:rgb(102,102,102);">my </span>  <span style="white-space:pre-wrap;  font:normal 34pt helveticaneuelt pro 25 ultlt; color:rgb(102,102,102);">name</span>  <span style="white-space:pre-wrap;  font:normal 34pt helveticaneuelt pro 25 ultlt; color:rgb(102,102,102);"> is</span>  </div>     <div align="left" style="line-height:0pt; font:normal 34pt arial;">  <span style="white-space:pre-wrap;  font:normal 30pt helveticaneuelt pro 25 ultlt; color:rgb(77,217,255);">david </span>  <span style="white-space:pre-wrap;  font:normal 30pt helveticaneuelt pro 25 ultlt; color:rgb(77,217,255);">soban</span>  </div>     </div>


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -