cambio de fuentes css
This commit is contained in:
parent
3061eef783
commit
3136ee7de7
|
@ -3205,7 +3205,7 @@ class Otl
|
|||
{
|
||||
|
||||
// If current glyph is a mark with a defined width, any XAdvance is considered to REPLACE the character Advance Width
|
||||
// Test case <div style="font-family:myanmartext">င်္က္ကျြွေိ</div>
|
||||
// Test case <div >င်္က္ကျြွေိ</div>
|
||||
if (strpos($this->GlyphClassMarks, $this->OTLdata[$basepos]['hex']) !== false) {
|
||||
$cw = round($this->mpdf->_getCharWidth($this->mpdf->CurrentFont['cw'], $this->OTLdata[$basepos]['uni']) * $this->mpdf->CurrentFont['unitsPerEm'] / 1000); // convert back to font design units
|
||||
} else {
|
||||
|
@ -3216,7 +3216,7 @@ class Otl
|
|||
|
||||
if (isset($Value['XAdvance']) && ($Value['XAdvance'] - $cw) != 0) {
|
||||
// However DON'T REPLACE the character Advance Width if Advance Width is negative
|
||||
// Test case <div style="font-family: dejavusansmono">ру́сский</div>
|
||||
// Test case <div>ру́сский</div>
|
||||
if ($Value['XAdvance'] < 0) {
|
||||
$cw = 0;
|
||||
}
|
||||
|
@ -6161,7 +6161,7 @@ class Otl
|
|||
{
|
||||
echo '<div style="padding-left: ' . ($level * 2) . 'em;">';
|
||||
echo $GPOSSUB . ' LookupID #' . $lookupID . ' Subtable#' . $subtable . ' Type: ' . $Type . ' Format: ' . $Format . '<br />';
|
||||
echo '<div style="font-family:monospace">';
|
||||
echo '<div >';
|
||||
echo 'Glyph position: ' . $ptr . ' Current Glyph: ' . $currGlyph . '<br />';
|
||||
|
||||
for ($i = 0; $i < count($this->OTLdata); $i++) {
|
||||
|
|
Loading…
Reference in New Issue