【发布时间】:2011-04-08 09:06:20
【问题描述】:
我的工作是用 HTML 和 CSS 重新创建一个 flex 应用程序。现有应用程序大量使用 TextFlow 来布局内容。出于几个原因,我需要非常准确的定位(在几个像素内)。
当前应用程序正在加载如下所示的数据:
<p paragraphstartindent="0"
textalign="center"><span alignmentbaseline="useDominantBaseline"
backgroundalpha="1"
backgroundcolor="transparent"
baselineshift="0"
breakopportunity="auto"
cffhinting="horizontalStem"
color="0x0"
digitcase="default"
digitwidth="default"
dominantbaseline="auto"
fontfamily="ArialCFF"
fontlookup="embeddedCFF"
fontsize="22"
fontstyle="normal"
fontweight="bold"
kerning="auto"
ligaturelevel="common"
lineheight="120%"
linethrough="false"
locale="en"
renderingmode="cff"
textalpha="1"
textdecoration="none"
textrotation="auto"
trackingleft="0"
trackingright="0"
typographiccase="default">Here is some content which needs to be accurately positioned</span></p>
理想情况下,我正在寻找一个库,我可以使用它来将这些许多属性转换为“正确的”html 和 css。目前的技术栈是后端的PHP和前端的javascript,但是使用任何其他语言进行翻译几乎没有问题。
如果失败了,我想我会尝试自己编写,使用 the api reference 作为指导。
【问题讨论】:
标签: html css flash apache-flex actionscript