Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A9B2B185B7 for ; Sat, 18 Jul 2015 07:53:38 +0000 (UTC) Received: (qmail 77313 invoked by uid 500); 18 Jul 2015 07:53:37 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 77281 invoked by uid 500); 18 Jul 2015 07:53:37 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 77269 invoked by uid 99); 18 Jul 2015 07:53:37 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jul 2015 07:53:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 0A525D5851 for ; Sat, 18 Jul 2015 07:53:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.213 X-Spam-Level: **** X-Spam-Status: No, score=4.213 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id U4wOjPqzeezh for ; Sat, 18 Jul 2015 07:53:30 +0000 (UTC) Received: from mail-vn0-f54.google.com (mail-vn0-f54.google.com [209.85.216.54]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 0105343A5B for ; Sat, 18 Jul 2015 07:53:30 +0000 (UTC) Received: by vnav141 with SMTP id v141so8201582vna.0 for ; Sat, 18 Jul 2015 00:51:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kfQ3gldFBnf5oj85stcCNTc3bVXhafox+0xNyfD6bYw=; b=O2pBqZfCIJnmdILeBCyc0Nub6Ca8eYROmOpnTQpQcPcNvV4IHFh7uFWfZVa5WbEn/t +D8sGzRBVa582nBthSBfATF01uVzJtez6NvUjXvzpzk18R36PZFhJrVzWO3Sab7KkPH0 r8eZrRDp9CtvXDBSt1trv37mFhyR8m2S7gzirxhFxhqMY+9egZggzJLIO5GaoOI+AttJ GQ0u381Ss9oI5uuuyMoI7Ke3rDNUgsK614/EXQxqatJ+SElIoyH2hUBNBEUDWLnpmiIB yzCeYi31aR2Y36MxMS5w4RlvlGJOECbfVLnX2vCGaKKM20djAPMTDvamaQY3h19E7syH nx3g== MIME-Version: 1.0 X-Received: by 10.52.179.73 with SMTP id de9mr22411857vdc.28.1437205912761; Sat, 18 Jul 2015 00:51:52 -0700 (PDT) Received: by 10.31.98.135 with HTTP; Sat, 18 Jul 2015 00:51:52 -0700 (PDT) In-Reply-To: References: <1437114872346-10800.post@n4.nabble.com> Date: Sat, 18 Jul 2015 13:21:52 +0530 Message-ID: Subject: Re: Embedded font for Charts From: Deepak MS To: "users@flex.apache.org" Content-Type: multipart/alternative; boundary=bcaec5171f5fe63d53051b2193ad --bcaec5171f5fe63d53051b2193ad Content-Type: text/plain; charset=UTF-8 That worked great. Thanks Alex. I have filed it here: https://issues.apache.org/jira/browse/FLEX-34909 On Fri, Jul 17, 2015 at 10:37 PM, Alex Harui wrote: > Hmm. > > I would say there is a bug in Charts when working with embedded fonts. > Please file a bug with your test case at > https://issues.apache.org/jira/browse/FLEX. It appears that Charts tries > to use Spark Label for the axis, but is still using UITextFields to > measure labels. > > I think I got it to work by forcing Axis to use MX Labels. See below. > > HTH, > -Alex > > > xmlns:s="library://ns.adobe.com/flex/spark" > xmlns:mx="library://ns.adobe.com/flex/mx" > minWidth="955" > minHeight="600"> > > > @namespace s "library://ns.adobe.com/flex/spark"; > @namespace mx "library://ns.adobe.com/flex/mx"; > > @font-face > { > src: url("assets/fonts/TAHOMA.TTF"); /* tried all > fonts in the assets > folder, they all are normal fonts(non bold or non italic) */ > fontFamily: myFont; > fontStyle: normal; > fontWeight: normal; > embedAsCFF: false; > advancedAntiAliasing: true; > } > > .chartFonts > { > fontFamily: myFont; > fontWeight: normal; > fontSize: 26; > } > > .axisStyles > { > labelClass: ClassReference("mx.controls.Label"); > } > > > > > import mx.collections.ArrayCollection; > [Bindable] > private var medalsAC:ArrayCollection = new > ArrayCollection( [ > { Country: "USA", Gold: 35, Silver:39, > Bronze: 29 }, > { Country: "China", Gold: 32, Silver:17, > Bronze: 14 }, > { Country: "Russia", Gold: 27, Silver:27, > Bronze: 38 } ]); > ]]> > > height="100%" showDataTips="true" > width="50%" > dataProvider="{medalsAC}" > seriesFilters="{[]}" > > > > > > > > > > > > > > > > > xField="Country" > yField="Gold" > displayName="Gold" > > > > > > > > > > > > > On 7/16/15, 11:34 PM, "megharajdeepak" wrote: > > >SampleChart.zip > >< > http://apache-flex-users.2333346.n4.nabble.com/file/n10800/SampleChart.zi > >p> > > > >I'm using Flex 4.14 AIR 16, FP 16. > > > >I have attached sample fxp project with all the fonts as well. > > > > > > > >-- > >View this message in context: > > > http://apache-flex-users.2333346.n4.nabble.com/Embedded-font-for-Charts-tp > >10793p10800.html > >Sent from the Apache Flex Users mailing list archive at Nabble.com. > > --bcaec5171f5fe63d53051b2193ad--