css - What's equivalent to "font-size-adjust"? -


i want specify 2 different fonts in font-family (font-family:a, b;) sizes of these 2 fonts different.

it seems font-size-adjust onlys work in firefox. how can adjust second font size if first 1 not available?

you cannot. conclusion should list fonts sufficiently similar in properties.

well, there tricks used detect availability of font on basis of properties. use font (only) invisible inline test element containing text , compare, using javascript, width of test element measured width (allowing small difference, since different implementations of font may yield different widths). if widths don’t match, change font size setting element(s) have font-family: a, b, size suitable b. well, still have problem font b might not available either. messy, no real guarantee of success.


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -