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

runtime: Make "mono" select a monospaced font. #358

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

Don-Ward
Copy link
Collaborator

Previously, "mono" and "fixed" were treated as the same thing and asked for Lucida Sans, which is a proportionally spaced font. Now, "mono" asks for Lucida Console, which is monospaced, and "fixed" selects Lucida Sans (with the correct flags).

@Don-Ward Don-Ward requested review from cjeffery and Jafaral February 10, 2024 15:01
@@ -1674,10 +1674,14 @@ HFONT mkfont(char *s, char is_3D)
* This is a legal Icon font spec.
* Check first for special "standard" family names.
*/
if (!strcmp(family, "mono") || !strcmp(family, "fixed")) {
stdfam = "Lucida Sans"; /* Lucida Console? */
if (!strcmp(family, "mono")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation is off

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That willl be the tabs (sigh). OK, I'll fix it. There are are times (most of the time, actually) when I wish we could replace every tab in the source code with spaces.

@@ -5698,10 +5698,14 @@ void mkfont(char *s, char is_3D)
* This is a legal Icon font spec.
* Check first for special "standard" family names.
*/
if (!strcmp(family, "mono") || !strcmp(family, "fixed")) {
stdfam = "Lucida Sans"; /* Lucida Console? */
if (!strcmp(family, "mono")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@Don-Ward Don-Ward force-pushed the monospace-font branch 2 times, most recently from e607a9d to 5149743 Compare February 10, 2024 18:21
Previously, "mono" and "fixed" were treated as the same thing and
asked for Lucida Sans, which is a proportionally spaced font.
Now, "mono" asks for Lucida Console, which is monospaced, and
"fixed" selects Lucida Sans (with the correct flags).
@Jafaral Jafaral merged commit 6ce5402 into uniconproject:master Feb 12, 2024
16 checks passed
@Don-Ward Don-Ward deleted the monospace-font branch February 12, 2024 07:49
ValG4 pushed a commit to ValG4/unicon that referenced this pull request Dec 7, 2024
runtime: Make "mono" select a monospaced font.
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

Successfully merging this pull request may close these issues.

2 participants