ScratchAddons icon indicating copy to clipboard operation
ScratchAddons copied to clipboard

Website Font Customization

Open Philipuss1 opened this issue 4 years ago • 50 comments

Just a suggestion. Would it be possible for you to add an addon that allows you to customize the font on the website?

It's nothing that is really useful, but I think it would make it look better to the eyes.

Philipuss1 avatar Feb 22 '21 10:02 Philipuss1

This was mentioned in #645, but I don't plan to include fonts in the initial implementation of that issue so this can stay separate.

I think this would be an interesting addition, but it would only be possible to include a limited set of fonts (e.g. from Google Fonts) because there is no way to get a list of all fonts installed on a user's device.

mxmou avatar Feb 22 '21 12:02 mxmou

Just a suggestion. Would it be possible for you to add an addon that allows you to customize the font on the website?

It's nothing that is really useful, but I think it would make it look better to the eyes.

Useful! Maybe @WorldLanguages or @TheColaber can help us.

Genius398 avatar Feb 22 '21 14:02 Genius398

no way to get a list of all fonts installed on a user's device.

Chrome has an API for this (no need to include btw)

Useful! Maybe @WorldLanguages or @TheColaber can help us.

Anyone can make this, it's so simple. The main focus is probably the UI, which is probably hard because of the way SA was made. This is probably better to have for stylus and more.

TheColaber avatar Feb 22 '21 14:02 TheColaber

no way to get a list of all fonts installed on a user's device.

Chrome has an API for this (no need to include btw)

Useful! Maybe @WorldLanguages or @TheColaber can help us.

Anyone can make this, it's so simple. The main focus is probably the UI, which is probably hard because of the way SA was made. This is probably better to have for stylus and more.

ok. I'm new to website making BTW

Genius398 avatar Feb 22 '21 14:02 Genius398

Hope this will not lead to mandatory Sora on the website

Secret-chest avatar Feb 22 '21 15:02 Secret-chest

Hope this will not lead to mandatory Sora on the website

What is Sora?

Genius398 avatar Feb 22 '21 15:02 Genius398

Hope this will not lead to mandatory Sora on the website

What is Sora?

A font

retronbv avatar Feb 22 '21 15:02 retronbv

Hope this will not lead to mandatory Sora on the website

What is Sora?

A font

ok

Genius398 avatar Feb 22 '21 15:02 Genius398

Hope this will not lead to mandatory Sora on the website

Of course not, no changes to the Scratch website are mandatory... (do I need to explain this lol)

WorldLanguages avatar Feb 22 '21 17:02 WorldLanguages

Hope this will not lead to mandatory Sora on the website

Of course not, no changes to the Scratch website are mandatory... (do I need to explain this lol)

hahaha

Genius398 avatar Feb 23 '21 07:02 Genius398

Hope this will not lead to mandatory Sora on the website

What is Sora?

Specifically, it's the font that is used on the extension.

Hans5958 avatar Feb 23 '21 09:02 Hans5958

Hope this will not lead to mandatory Sora on the website

What is Sora?

Specifically, it's the font that is used on the extension.

ok

Genius398 avatar Feb 23 '21 09:02 Genius398

Whoa, so many comments. This was just a small suggestion. Simply a "we do not plan to make it a feature" could've been enough. ;)

ghost avatar Feb 23 '21 10:02 ghost

Whoa, so many comments. This was just a small suggestion. Simply a "we do not plan to make it a feature" could've been enough. ;)

We love to take stuff to great lengths

Genius398 avatar Feb 23 '21 11:02 Genius398

Haha

On Tue, Feb 23, 2021 at 1:04 PM Anantjit [email protected] wrote:

Whoa, so many comments. This was just a small suggestion. Simply a "we do not plan to make it a feature" could've been enough. ;)

We love to take stuff to great lengths

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ScratchAddons/ScratchAddons/issues/1646#issuecomment-784118755, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOOYXEHYUSXFSNCR5XMAZCLTAODSFANCNFSM4YAIFKMA .

ghost avatar Feb 23 '21 11:02 ghost

We never said "we do not plan to make it a feature"...it's a great idea...

cobaltt7 avatar Feb 23 '21 14:02 cobaltt7

I know. I said, that if you were to say it, it would've been enough since this conversation is getting quite long.

On Tue, Feb 23, 2021 at 4:08 PM Paul Reid [email protected] wrote:

We never said "we do not plan to make it a feature"...it's a great idea...


From: Philip [email protected] Sent: Tuesday, February 23, 2021 5:05:12 AM To: ScratchAddons/ScratchAddons [email protected] Cc: Subscribed [email protected] Subject: Re: [ScratchAddons/ScratchAddons] Font Customization (#1646)

Haha

On Tue, Feb 23, 2021 at 1:04 PM Anantjit [email protected] wrote:

Whoa, so many comments. This was just a small suggestion. Simply a "we do not plan to make it a feature" could've been enough. ;)

We love to take stuff to great lengths

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/ScratchAddons/ScratchAddons/issues/1646#issuecomment-784118755 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AOOYXEHYUSXFSNCR5XMAZCLTAODSFANCNFSM4YAIFKMA

.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub< https://github.com/ScratchAddons/ScratchAddons/issues/1646#issuecomment-784119416>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AOT5DETUKDXYJZ3Q6LNXOC3TAODWRANCNFSM4YAIFKMA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ScratchAddons/ScratchAddons/issues/1646#issuecomment-784227959, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOOYXECXB4URMKMYNWVMHPLTAOZG7ANCNFSM4YAIFKMA .

ghost avatar Feb 23 '21 14:02 ghost

@WorldLanguages Is this rejected? https://github.com/ScratchAddons/ScratchAddons/pull/1764#issuecomment-796027234

mxmou avatar Mar 10 '21 20:03 mxmou

@mxmou Not sure. If there's a non-sketchy available extension that lets you customize a website's font, and it works fine with Scratch, then it likely is.

WorldLanguages avatar Mar 10 '21 22:03 WorldLanguages

@mxmou Not sure. If there's a non-sketchy available extension that lets you customize a website's font, and it works fine with Scratch, then it likely is.

Yes, Stylus works just fine

Secret-chest avatar Mar 12 '21 07:03 Secret-chest

lol

Genius398 avatar Mar 12 '21 08:03 Genius398

I already made a userscript for Tampermonkey some of the @match attributes I ~stole~ borrowed from someone else's userscript for dark mode (because I would've never thought of aero-a.github.io and /*)

// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://scratch.mit.edu/*
// @match        https://scratch.mit.edu/projects/*
// @match        https://scratch.org/projects/*
// @match        https://aero-a.github.io/scratch-gui/*
// @exclude      https://scratch.mit.edu/join
// @exclude      https://scratch.mit.edu/accounts/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    document.querySelector("html").style.fontFamily = "Segoe UI";
    document.querySelector("body").style.fontFamily = "Segoe UI";
    document.querySelector("*").style.fontFamily = "Segoe UI";
})();

W_L hope this helps

(Edit: this is a really flexible, and this won't be the last update to the code)

qbjl avatar Apr 14 '21 14:04 qbjl

No. Stylus does not work fine. Nor Tampermonkey. I think I can get it right, I have a little userstyle which changes the font to Lato... (without any stage text bugs)

Secret-chest avatar Apr 16 '21 10:04 Secret-chest

the problem with this, is that the blocks are rendered according to the width of the text assuming the font is the default font, if i use a userstyle to set font to a monospaced font, it will overflow, this should be accounted by this addon (if ever implemented)

xAspirus avatar Apr 26 '22 17:04 xAspirus

the problem with this, is that the blocks are rendered according to the width of the text assuming the font is the default font, if i use a userstyle to set font to a monospaced font, it will overflow, this should be accounted by this addon (if ever implemented)

I think the current version of this PR changes the font size of blocks to prevent that. Redrawing the blocks using the new font for measurements would be better if that's possible.

mxmou avatar Apr 26 '22 19:04 mxmou

the problem with this, is that the blocks are rendered according to the width of the text assuming the font is the default font, if i use a userstyle to set font to a monospaced font, it will overflow, this should be accounted by this addon (if ever implemented)

The possibility to customize the UI font, for example by allowing to switch to "Dyslexic Font", would be of great help for people with Learning Disorders such as Dyslexia, as you can also read at https://scratch.mit.edu/discuss/topic/411561/

sfederici avatar Sep 28 '22 11:09 sfederici

the problem with this, is that the blocks are rendered according to the width of the text assuming the font is the default font, if i use a userstyle to set font to a monospaced font, it will overflow, this should be accounted by this addon (if ever implemented)

The possibility to customize the UI font, for example by allowing to switch to "Dyslexic Font", would be of great help for people with Learning Disorders such as Dyslexia, as you can also read at https://scratch.mit.edu/discuss/topic/411561/

I managed to download and install the OpenDyslexic font from https://www.dafont.com/open-dyslexic.font. Then I changed the Chrome font to OpenDyslexic using the Fonts Changer extension.

I have set the "Standard font" to OpenDyslexic and "Minimum font size" to 10.

Whereas in English some text in the blocks sticks to the block's left and right side, when I switch to Italian the visualization is perfect. Only drawbacks for now:

  • the frame of the sprite's, costume's and sound's thumbnails are shorter than usual. This makes the thumbnail info (e.g. costume size) a bit difficult to read
  • the font in the speech bubbles on the Stage is still Arial

sfederici avatar Sep 29 '22 14:09 sfederici

@sfederici editing text in vector editor is weird

Secret-chest avatar Oct 01 '22 18:10 Secret-chest

@sfederici editing text in vector editor is weird

Thanks for your feedback. What do you mean? As for the Stage, I only see standard Scratch fonts in the vector editor. I tried adding a text box and I edited it without any trouble.

sfederici avatar Oct 04 '22 08:10 sfederici

@sfederici editing text in vector editor is weird

Thanks for your feedback. What do you mean? As for the Stage, I only see standard Scratch fonts in the vector editor. I tried adding a text box and I edited it without any trouble.

try moving your cursor

Secret-chest avatar Oct 04 '22 09:10 Secret-chest