(Translated by https://www.hiragana.jp/)
Treat consolas font as monospaced/backticked text as well. · Issue #55 · mangini/gdocs2md · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat consolas font as monospaced/backticked text as well. #55

Open
avengerx opened this issue Jun 1, 2017 · 0 comments
Open

Treat consolas font as monospaced/backticked text as well. #55

avengerx opened this issue Jun 1, 2017 · 0 comments

Comments

@avengerx
Copy link

avengerx commented Jun 1, 2017

Hi, I found the Consolas font "cuter" in my google docs and I am using this change to lines 267-268 of the script:

     if (!inSrc && (font===font.COURIER_NEW || font=="Consolas")) {
        while (i>=1 && txt.getFontFamily(attrs[i-1]) && (txt.getFontFamily(attrs[i-1])===font.COURIER_NEW || txt.getFontFamily(attrs[i-1])=="Consolas")) {

I'm not keen enough to guess what constant is from font.* that will match the Consolas font, but this way works for me. :)

(sorry I am too lazy to make a proper/decent pull request, so the alternative is here for whoever wants to implement to the code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant