texworks icon indicating copy to clipboard operation
texworks copied to clipboard

Enable setting default font style

Open motib opened this issue 6 years ago • 2 comments

Steps to reproduce the problem:

  1. Open Edit/Preferences/Editor

Expected output: I would like to be able to set the default font style, in particular, bold because the regular font style is hard to read on a laptop.

Actual output: No field to select font style.

TeXworks version: 0.6.2 TeXworks obtained from: MikTeX Operating system: Windows 7 Enterprise

Please provide any additional information below:

motib avatar Aug 01 '18 13:08 motib

Until this issue is properly resolved (which is a bit trickier than it might seem), here is a workaround to achieve the same goal: Create a file, e.g. style.css with the following content:

QTextEdit {
        font-weight: bold;
}

For the sake of this comment, I'll assume you put it in the same folder as TeXworks.exe. Then run TeXworks.exe with the following command:

TeXworks.exe -stylesheet style.css

(replace style.css with the full path to your file if it is not in the same folder as TeXworks). To make this change (somewhat) permanent and easy to do regularly, you can put the line above in a file like TeXworks.bat and use that .bat file instead of the .exe file to run TeXworks.

stloeffler avatar Mar 07 '19 06:03 stloeffler

Thanks, Stefan. This is less dangerous than hacking the register! I'll try it out. If anyone is interested: the you can change the "font" entry of the TW registry entry using the following codes for the weight: 50 = normal, 25 = light, 63 = semibold, 75 = bold, 87 = black. Moti

-- Prof. (Emeritus) Mordechai (Moti) Ben-Ari http://www.weizmann.ac.il/sci-tea/benari/ When the lies are all told and forgot the truth will be there yet. Cormac McCarthy

On Thu, Mar 7, 2019 at 8:12 AM Stefan Löffler [email protected] wrote:

Until this issue is properly resolved (which is a bit trickier than it might seem), here is a workaround to achieve the same goal: Create a file, e.g. style.css with the following content:

QTextEdit { font-weight: bold; }

For the sake of this comment, I'll assume you put it in the same folder as TeXworks.exe. Then run TeXworks.exe with the following command:

TeXworks.exe -stylesheet style.css

(replace style.css with the full path to your file if it is not in the same folder as TeXworks). To make this change (somewhat) permanent and easy to do regularly, you can put the line above in a file like TeXworks.bat and use that .bat file instead of the .exe file to run TeXworks.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TeXworks/texworks/issues/846#issuecomment-470399373, or mute the thread https://github.com/notifications/unsubscribe-auth/ACf7Kn3mWvxtHeS7R-z8-mfIS5V2GUQZks5vUK3MgaJpZM4VqdUY .

motib avatar Mar 07 '19 06:03 motib