Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B985117F7 for ; Wed, 2 Apr 2014 07:23:22 +0000 (UTC) Received: (qmail 33628 invoked by uid 500); 2 Apr 2014 07:23:21 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 33415 invoked by uid 500); 2 Apr 2014 07:23:20 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 32281 invoked by uid 99); 2 Apr 2014 07:23:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 07:23:16 +0000 Date: Wed, 2 Apr 2014 07:23:16 +0000 (UTC) From: "Dudda (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (FLEX-34197) Text Layout Framework: change embedded fontFamily works in AIR doesn't work in FLEX(WEB) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-34197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13957424#comment-13957424 ] Dudda edited comment on FLEX-34197 at 4/2/14 7:22 AM: ------------------------------------------------------ just moved to Apache Flex!! :-) was (Author: diblasid): just moved to Apache Flex!! ^_^ > Text Layout Framework: change embedded fontFamily works in AIR doesn't work in FLEX(WEB) > ---------------------------------------------------------------------------------------- > > Key: FLEX-34197 > URL: https://issues.apache.org/jira/browse/FLEX-34197 > Project: Apache Flex > Issue Type: Bug > Components: Embedded Fonts > Affects Versions: Adobe Flex SDK 4.6 (Release) > Environment: every platform (linux not tested) > Reporter: Dudda > Assignee: Maurice Amsellem > Labels: easytest, embedded-fonts, flex, tlf > Fix For: Apache Flex 4.12.0 > > > i have a sample code, if you run it as an AIR windowedApplication it works, if you run it as a web page (s:Application) it doesn't. > I have AIR 3.8 and flex 4.6.0 > The problem is the embedded font: in desktop application i can see the text changes in the textarea using TLF, in web it falls in the default font, but the font is there, since the other textarea displays it, so the problem seems to be the TLF.... but i can't understand what is wrong in the code. > > the following is the code for AIR desktop application, to test the problem just create a web application for flashplayer and replace windowedApplication with Application in the code > (you'll need also to have TopSecret.ttf, or another ttf font changing the referenced name accordingly in the code, in the main folder): > > xmlns:s="library://ns.adobe.com/flex/spark" > xmlns:mx="library://ns.adobe.com/flex/mx"> > > import flashx.textLayout.formats.TextLayoutFormat; > import mx.events.FlexEvent; > import spark.events.IndexChangeEvent; > protected function fontDDL_changeHandler(event:IndexChangeEvent):void > { > var txtLayFmt:TextLayoutFormat = dynamicArea.getFormatOfRange(null, > dynamicArea.selectionAnchorPosition, > dynamicArea.selectionActivePosition); > txtLayFmt.fontFamily = fontDDL.selectedItem; > dynamicArea.setFormatOfRange(txtLayFmt, > dynamicArea.selectionAnchorPosition, > dynamicArea.selectionActivePosition); > } > ]]> > > > @namespace s library://ns.adobe.com/flex/spark; > @namespace mx library://ns.adobe.com/flex/mx; > @font-face { > src: url(TopSecret.ttf); > fontFamily: TopSecret; > embedAsCFF:true; > } > > > > > > > > > > > > -- This message was sent by Atlassian JIRA (v6.2#6252)