@@ -1561,13 +1561,12 @@ createElement context children rendered =
1561 -- , existingStyles
1561 -- , existingStyles
1565− (if context == asParagraph then
1564+ ( (if context == asEl then
1566− str
1565+ textElementFill str
1569− str
1568+ textElement str
1571 :: htmls
1570 :: htmls
1572 , existingStyles
1571 , existingStyles
@@ -1627,8 +1626,11 @@ createElement context children rendered =
1629+ , if context == asEl then
1630+ textElementFill str
1630− , textElement
1633+ textElement str
1633 :: htmls
1635 :: htmls
1634 , existingStyles
1636 , existingStyles
@@ -1963,14 +1965,13 @@ textElement str =
1963textElementFill : String -> VirtualDom.Node msg
1965textElementFill : String -> VirtualDom.Node msg
1964textElementFill str =
1966textElementFill str =
1965 VirtualDom.node "div"
1967 VirtualDom.node "div"
1966− [ VirtualDom.property "className"
1968+ [ Html.Attributes.class
1968− String.join " "
1969+ (String.join " "
1969− [ classes.any
1970+ [ classes.any
1970− , classes.text
1971+ , classes.text
1971− , classes.widthFill
1972+ , classes.widthFill
1972− , classes.heightFill
1973+ , classes.heightFill
1976 [ VirtualDom.text str ]
1977 [ VirtualDom.text str ]
@@ -2308,7 +2309,38 @@ renderNullAdjustmentRule fontToAdjust otherFontName =
2312+fontRule name modifier ( parentAdj, textAdjustment ) =
2331+ ++ Internal.Style.classes.text
2337+ ++ Internal.Style.classes.text
2311−renderFontAdjustmentRule fontToAdjust ( parentAdj, textAdjustment ) otherFontName =
2343+renderFontAdjustmentRule fontToAdjust ( full, capital ) otherFontName =
2314 if fontToAdjust == otherFontName then
2346 if fontToAdjust == otherFontName then
@@ -2318,34 +2350,7 @@ renderFontAdjustmentRule fontToAdjust ( parentAdj, textAdjustment ) otherFontNam
2318 otherFontName ++ " ." ++ fontToAdjust
2350 otherFontName ++ " ." ++ fontToAdjust
2320 String.join " "
2352 String.join " "
2325− ++ classes.sizeByCapital
2330− ++ classes.sizeByCapital
2353+ (fontRule name classes.sizeByCapital capital ++ fontRule name classes.fullSize full)
2337− ++ classes.sizeByCapital
2339− ++ Internal.Style.classes.text
2343− ++ classes.sizeByCapital
2345− ++ Internal.Style.classes.text
2351bracket selector rules =
2356bracket selector rules =
@@ -2358,17 +2363,12 @@ bracket selector rules =
2359fontAdjustmentRules converted =
2364fontAdjustmentRules converted =
2360 ( [ ( "display", "block" )
2365 ( [ ( "display", "block" )
2362− -- , ( "line-height", String.fromFloat converted.height )
2363− -- , ( "font-size", String.fromFloat (1 + converted.height + converted.vertical) ++ "em" )
2365 , [ ( "display", "inline-block" )
2367 , [ ( "display", "inline-block" )
2366 , ( "line-height", String.fromFloat converted.height )
2368 , ( "line-height", String.fromFloat converted.height )
2367 , ( "vertical-align", String.fromFloat converted.vertical ++ "em" )
2369 , ( "vertical-align", String.fromFloat converted.vertical ++ "em" )
2368 , ( "font-size", String.fromFloat converted.size ++ "em" )
2370 , ( "font-size", String.fromFloat converted.size ++ "em" )
2370− -- , [ ( "font-size", String.fromFloat converted.size ++ "em" )
@@ -2380,7 +2380,9 @@ typefaceAdjustment typefaces =
2380 case face of
2380 case face of
2381 FontWith with ->
2381 FontWith with ->
2383+ ( fontAdjustmentRules
2384+ (.full (convertAdjustment with.adjustment))
2383− (fontAdjustmentRules
2385+ , fontAdjustmentRules
2384 (.capital (convertAdjustment with.adjustment))
2386 (.capital (convertAdjustment with.adjustment))
@@ -3352,16 +3354,16 @@ convertAdjustment adjustment =
3352 capitalSize =
3354 capitalSize =
3353 1 / (ascender - newBaseline)
3355 1 / (ascender - newBaseline)
3358+ 1 / (ascender - descender)
3355 fullVertical =
3360 fullVertical =
3356− (oldMiddle - newFullMiddle) * 2
3363+ -- (oldMiddle - newFullMiddle) * 2
3358 { full =
3365 { full =
3359− { vertical = fullVertical
3361− (ascender - descender)
3366+ adjust fullSize (ascender - descender) fullVertical
3365 , capital =
3367 , capital =
3366 adjust capitalSize (ascender - newBaseline) capitalVertical
3368 adjust capitalSize (ascender - newBaseline) capitalVertical
@@ -3371,7 +3373,5 @@ adjust size height vertical =
3371 { vertical = vertical
3373 { vertical = vertical
3372 , height =
3374 , height =
3373 height / size
3375 height / size
3376 , size = size
3376 , size = size