Skip to content

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

@avengerx

Description

@avengerx

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions