Return-Path: X-Original-To: apmail-incubator-flex-users-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28263D374 for ; Fri, 16 Nov 2012 18:55:21 +0000 (UTC) Received: (qmail 49529 invoked by uid 500); 16 Nov 2012 18:55:20 -0000 Delivered-To: apmail-incubator-flex-users-archive@incubator.apache.org Received: (qmail 49489 invoked by uid 500); 16 Nov 2012 18:55:20 -0000 Mailing-List: contact flex-users-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-users@incubator.apache.org Delivered-To: mailing list flex-users@incubator.apache.org Received: (qmail 49480 invoked by uid 99); 16 Nov 2012 18:55:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 18:55:20 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of markline@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-wg0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 18:55:14 +0000 Received: by mail-wg0-f43.google.com with SMTP id dq12so144889wgb.0 for ; Fri, 16 Nov 2012 10:54:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :content-language; bh=1HYjBTKdwniyzDmWNI9pjniIr7V72qQR6bb0TXiWg3w=; b=G/6YVB0t1qD03fTWviwjcF9zST4tHrbkbLslZEUvCDh4sk04CVFP7dTD2hRC5noFbq Fwm/4BvkI+RYgwgteaPsOwif1Hr0hkGw3WgB1xCTWCRO7EobvpuYIX6rY44ARA9jZ6yu lbD+Z4/q6yY/BVW/RbwropM5Frl3pzT+tUS5+41pgO6ED2GtssBpKcOHSck6SjbuNyQA Ad2Nto+Ft4swUwFN7+6su8MvAls9lOlbXbAO56WvQnh5fcNMCW9qiDUmsRPntELx4UzG iLaRCJax05LpyEYIgclaoUE3eyNOuqVJCO88P5ixuZlKl9ufMl+KgHxSydlJQpywibpY Iegw== Received: by 10.216.199.10 with SMTP id w10mr2307579wen.198.1353092093526; Fri, 16 Nov 2012 10:54:53 -0800 (PST) Received: from mline (cpc14-flit3-2-0-cust23.9-1.cable.virginmedia.com. [81.108.56.24]) by mx.google.com with ESMTPS id c7sm2139222wix.6.2012.11.16.10.54.51 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 16 Nov 2012 10:54:52 -0800 (PST) From: "Mark Line" To: References: In-Reply-To: Subject: RE: Embedded fonts, mixed FTE/Textfield components, and embedAsCFF Date: Fri, 16 Nov 2012 18:54:52 -0000 Message-ID: <001b01cdc42b$dd394c10$97abe430$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQGQ5L7KBjTvYd+aIXEdXSe9spIWrJhmjZ1g Content-Language: en-gb X-Virus-Checked: Checked by ClamAV on apache.org In a large application working on we load the same font twice to overcome this problem, although we don't embed the full font only some characters. Seems to work quite well until we finish moving fully to tlf -----Original Message----- From: Alex Harui [mailto:aharui@adobe.com] Sent: 16 November 2012 18:45 To: flex-users@incubator.apache.org Subject: Re: Embedded fonts, mixed FTE/Textfield components, and embedAsCFF Yes, you can certainly embed the font twice, it just fattens the app, and if you have a full unicode font, that can be hefty. I think StyleableTextField is in the Spark namepace which typically has the s| prefix. The LabelItemRenderer should be in Spark as well and setting fontFamily there should work. On 11/16/12 10:24 AM, "Russell Warren" wrote: >> >> Unfortunately, that is a trade-off you will have to make. > > > Do I really need to trade this off? Can I use brute force instead? > For example... is there some way I can embed the same font twice, once > as CFF for all the Spark skins, and once as non-CFF for anything based > on TextField? > > Something like this: > > @font-face { >> src:url("assets/fonts/Vera.ttf"); >> fontFamily: Vera; >> fontWeight: normal; >> fontStyle: normal; >> advancedAntiAliasing: true; >> embedAsCFF: true; >> } >> @font-face { >> src:url("assets/fonts/Vera.ttf"); >> fontFamily: Vera*NoCFF*; >> fontWeight: normal; >> fontStyle: normal; >> advancedAntiAliasing: true; >> embedAsCFF: *false*; >> } > > > Is this possible to split between Spark/FTE and MX/TextField? I can't > figure out a CSS selector path for identifying styles for > StyleableTextField instances. I don't quite understand the CSS, though. > For instance I have no idea how the snippet below fixes the font > issues for the MX tooltips and Alert.show, but it works perfectly: > > /* Changing the global fontFamily above breaks mx components. The >> mx|global bit below fixes this. >> Source: >> http://mikeorth.com/2012/embedded-fonts-with-tooltip-and-alert-in-fle >> x-4 >> */ >> mx|global { >> textFieldClass: ClassReference("mx.core.UIFTETextField"); >> } > > > If the brute force font double-up has the potential of working... how > would I set the fontFamily for StyleableTextField to VeraCFF? I've > tried this > with: > > StyleableTextField { >> fontFamily: VeraNoCFF; >> } > > > but the compiler complains that "Type 'StyleableTextField' in CSS > selector 'StyleableTextField' must be qualified with a namespace." and > I can't figure out what the namespace would be to get to StyleableTextField. -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui