Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
1

Lucida Sans

Explorer ,
May 19, 2010 May 19, 2010

Hi,

I'm having issues whne I try to use Lucida Sans in my application. I'm embedding several fonts and all of them are working ok. even Lucida Sans is been embedded and displaied correctly, the problem is when I select text, the selection is offset:

Screen shot 2010-05-19 at 12.12.10 PM.png

I just noticed the same issue in the TLF Editor Demo whne the "lookup" properti is set to "Device":

Screen shot 2010-05-19 at 12.17.27 PM.png

The weird thing is that in my application, I'm using:

textLayoutFormat.fontLookup = flash.text.engine.FontLookup.EMBEDDED_CFF;

When I apply the font.

Any Ideas?

TOPICS
Text layout framework
3.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 19, 2010 May 19, 2010

If you are not seeing this same problem with other embedded fonts, maybe it is a problem specific to this font. Where did you get it from? Are you using Windows or Macintosh?

Thanks,

- robin

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 20, 2010 May 20, 2010

@robin. I have tried several versions of the font. I'm using a Mac. as I mentioned I have this problem only with Lucida Sans.

@Alexander. I just installed the SDk 4.1.0.16076 and still have the problem.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 20, 2010 May 20, 2010

Oscar,

I've looked at a few versions of Lucida Sans I have available, and I'm not seeing the highlight problems you are. Do you know where your copy of Lucida Sans originated?

Thanks,

Alan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 20, 2010 May 20, 2010

Thanks Alan.

I don't know its origins, it was sent to me by a friend.

Are you able to replicate the issue in the Demo Editor?

BTW, I'm on a iMac 27", but also tested on a Mac Pro, same result.

Thanks,

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 20, 2010 May 20, 2010

I tried both the demo editor and our internal version of the editor using the same textLayout.swc that your Flex build is using. I expect the issue is in the data we're getting from your version of Lucida Sans. We've seen this kind of problem with particular fonts before, and have fixed some of the issues in what we expect to get from font files. For what it's worth, the TrueType version of Lucida Sans I have installed from MS Office and the OpenType version of Lucida Sans from Adobe appear to work correctly for me.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 20, 2010 May 20, 2010
LATEST

thanks.

Would you be able to send me the font you have available so I can test it and know if the problem is my file? I have tested 4 different files, and always got the same result.

BTW, this what I'm doing to embedd the font:

package
{
    import flash.text.Font;

    public class LucidaSansFont
    {

        [Embed(source='assets/fonts/_LSANS.TTF', fontName='LucidaSansV', mimeType='application/x-font', embedAsCFF="true")]
        private static var standardF:Class;
       
        [Embed(source='assets/fonts/_LSANSD.TTF', fontName='LucidaSansV', fontWeight="bold", mimeType='application/x-font', embedAsCFF="true")]
        private static var boldF:Class;
       
        [Embed(source='assets/fonts/_LSANSI.TTF', fontName='LucidaSansV', fontStyle="italic", mimeType='application/x-font', embedAsCFF="true")]
        private static var italicF:Class;
       
        [Embed(source='assets/fonts/_LSANSDI.TTF', fontName='LucidaSansV', fontWeight="bold", fontStyle="italic", mimeType='application/x-font', embedAsCFF="true")]
        private static var bolditalicF:Class;
       
       
        public function LucidaSansFont()
        {
            Font.registerFont( standardF );
            Font.registerFont( boldF );
            Font.registerFont( italicF );
            Font.registerFont( bolditalicF );
        }
    }
}

and in my application I just do "new LucidaSansFont();".

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 20, 2010 May 20, 2010

What version of TLF do you use? I had the similar issue with build 4.0.0.10485. But when I switched to 4.0.0.12575 it's gone.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines