How can we post ASCII art on Facebook wall?

前端 未结 2 865
無奈伤痛
無奈伤痛 2021-01-14 16:52

In my app, I have a requirement to post the ASCII art from my iPhone app onto the Facebook wall post. But the problem I face is that Facebook font (Lucida Console) Changes t

2条回答
  •  没有蜡笔的小新
    2021-01-14 16:57

    Courier is a monospaced font. That means, that every letter has the same space. That's why it is easy to use for ASCII art and popular for coding — as words with same length will always be at same positions.

    From Facebook CSS:

    font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;
    

    Lucida Grande is a proportional font. i.e. an i uses much less space than an m. Words in different lines won't match very well.

    Edit

    Have a look at this Facebook group. The users compensate the absence of a monospaced font by

    1. using just symbols with roughly the same width
    2. filling room with short symbols like .

    Monospaced:

     `♥♥'''''''''''''''♥♥`  
     `♥♥'''''''''''''''♥♥`
    

    Proportional:

    ♥♥'''''''''''''''♥♥

提交回复
热议问题