Copy link to clipboard
Copied
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:

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

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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
@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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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,
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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();".
Copy link to clipboard
Copied
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.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more