2012-11-08 6 views
1

회전 탭 텍스트를 적용 할 때 탭에서 사라지는 이유는 무엇입니까? 탭을 따라 회전 할 수 있도록 레이블을 상대 위치에 유지할 수있는 방법이 있습니까?Openlaszlo의 SWF 런타임에서 탭 구성 요소를 회전 할 때 텍스트가 사라짐

코드 :

클라이언트 글꼴을 사용할 때 플래시/SWF 런타임의 기술적 한계를의
<tabs name="dentes" height="200" width="300" x="${this.width}" y="${this.height}" rotation="90"> 
    <tabpane name="coroa" text="Coroa" bgcolor="blue" width="100%" height="100%"> 
     <text>Nome:</text> 
    </tabpane> 
    <tabpane name="raiz" text="Raiz" bgcolor="red" width="100%" height="100%"> 
     <text>Nome:</text> 
    </tabpane> 
    <tabpane name="canal" text="Canal" bgcolor="green" width="100%" height="100%"> 
     <text>Nome:</text> 
    </tabpane> 
</tabs> 

답변

1

. 그것은뿐만 아니라 문서에 언급 된 것 :

OpenLaszlo Developers Guide, Chapter 21, Text Views을 : 특히, SWF로 컴파일 된 응용 프로그램에서 클라이언트 글꼴 및 포함 된 글꼴의 차이를 이해해야합니다. DHTML로 컴파일 된 응용 프로그램은 포함 된 글꼴을 사용할 수 없습니다. 그들은 항상 같은 방식으로 작동하지 않기 때문에

사용 <font> 태그로 TTF 폰트를 포함하는 (예를 들어, 클라이언트 글꼴 때문에 플래시 플레이어의 제한에 회전이나 불투명도 변경 될 수 없음) 귀하 신청. 당신이 당신의 텍스트에 해당 글꼴을 선택하면 예상대로 rotatoin는 예컨대, 작동 :

<canvas width="100%" height="250"> 

    <!-- ATTENTION: Please download the KentucyFriedChickendFont.ttf file using 
     this URL and put it in the same folder as this LZX file. 
     http://svn.openlaszlo.org/openlaszlo/trunk/test/resources/ttf/KentuckyFriedChickenFont.ttf 
    --> 

    <font name="ChickenNoCFF" src="KentuckyFriedChickenFont.ttf" embedascff="false" /> 
    <font name="ChickenCFF" src="KentuckyFriedChickenFont.ttf" embedascff="true" /> 

    <inputtext x="100" 
       rotation="10" 
       font="ChickenNoCFF" fontsize="32" 
       hasdirectionallayout="false" 
       resize="true"> 
    Embedded font (no CFF) 
    </inputtext> 

    <!-- Text elements using @hasdirectionallayout="true" need to set 
     @embedascff="true" for the SWF10+ runtimes --> 
    <inputtext x="100" y="100" 
       rotation="10" 
       font="ChickenCFF" fontsize="32" 
       hasdirectionallayout="true"> 
    Embedded font (embedded as CFF) 
    </inputtext> 

</canvas> 

당신은 당신의 응용 프로그램에 TTF 글꼴을 포함해야하고, 당신은 표준 텍스트 구성 요소를 자유롭게 회전 할 수 있습니다.

hasdirectionallayout SWF 응용 프로그램에서 텍스트 구성 요소의 속성을 사용하는 경우 사용자 지정 글꼴을 포함 할 때 embedascff="true" 특성을 사용해야합니다.

다음은 5.0 (트렁크)에서 테스트 한이 SWF10 앱 예의 스크린 샷입니다.

enter image description here