FontRenderContext frc) {
Set keys = aci.getAllAttributeKeys();
Set glyphPositionKeys = new HashSet();
glyphPositionKeys.add(TextAttribute.BIDI_EMBEDDING);
glyphPositionKeys.retainAll(keys);
if (glyphPositionKeys.isEmpty() ||
(aci.getAttribute(TextAttribute.RUN_DIRECTION) ==
TextAttribute.RUN_DIRECTION_RTL)) {
return new TextLayoutAdapter(new TextLayout(aci, frc), offset, aci);