Skip to main content
Participant
August 14, 2020
질문

Spaces in Font Family names are trimmed (for text nodes in PSD file when opened in XD)

  • August 14, 2020
  • 1 답변
  • 416 조회

Hi Team,

I am trying to get the fontFamily attribute from a text nodes styleRanges object.

When a PSD file is opened in XD, the spaces in fonfamily attribute in styleRanges object is trimmed and the fontStyle attribute is concatinated with the font name (see below).

Even If I copied a text layer from PSD to XD file, the same issue is happening. But the text settings in XD looks the same for both (See attachment)

 

styleRanges object for text node in PSD file when opened in XD

 

{ 
fontFamily: 'BlenderPro-Medium',
fontStyle: '',
}

 

 

 

Normal styleRanges object for simillar text node created in XD 

 

{ 
fontFamily: 'Blender Pro',
fontStyle: 'Medium', 
}

 

 

    이 주제는 답변이 닫혔습니다.

    1 답변

    Vlad G.
    Community Manager
    Community Manager
    August 27, 2020

    Hi and thanks for letting us know,

    It is indeed a regression in how we're handing font family/style at Photoshop import, I've logged a bug (ref 118328)
    A possible workaround would be to add every imported text object as character style in the assets panel (select all and use the '+' next to Character Styles in the Assets panel).

    Then for each of the styles (hopefully not many) you can change the font to another value, then change it back (but not by using Undo).

    Let me know if that helps,

     

    --

    Vlad