Showing posts with label font. Show all posts
Showing posts with label font. Show all posts

2023/01/02

Arduino #42集, “快速取得u8g2的字型代碼” (Get u8g2 unifont code quick & easy, u8g2 のフォント コードをすばやく取得する」です, u8g2용 폰트코드 빠르게 받아보기" 입니다)

歡迎收看Weekend project with Stonez56。 
本周是Arduino #42集, “快速取得u8g2的字型代碼”
我們將使用Stonez56 這個網站來快速取得字型代碼

目前為測試版: https://stonez56.com/u8g2/

這個 Stonez56 轉碼網站過人之處:

* 簡單易用用省時
* 自動移除重複字
* 產生極小的檔案 

使用方法簡單:

* 輸入你要轉換的字詞
* 按下送出
* 下載產生的字型代碼
* 存到 Arduino 專案目錄下
* 在你的主程式中, 用 include 帶進 字型.h 程式
* 用 u8g2.setFont(u8g2_font_unifont_myfonts) 

目前為測試版: https://stonez56.com/u8g2/




===========================
Stonez56 の Weekend プロジェクトへようこそ。
今週は Arduino #42 のエピソード「u8g2 のフォント コードをすばやく取得する」です。
Web サイト Stonez56 を使用して、フォント コードをすばやく取得します。

現在ベータ版:https://stonez56.com/u8g2/

この Stonez56 トランスコーディング サイトの優れた点:
*使いやすく、時間を節約
*重複する単語を自動的に削除
* 非常に小さいファイルを生成します

使いやすい:
*変換したい単語を入力してください
※押すと送信されます
* 生成されたフォント コードをダウンロードする
* Arduino プロジェクト ディレクトリに保存します。
* メイン プログラムで、include を使用して font.h プログラムを取り込みます。
* u8g2.setFont(u8g2_font_unifont_myfonts) を使用

現在ベータ版:https://stonez56.com/u8g2/


=============================
Stonez56과 함께하는 주말 프로젝트에 오신 것을 환영합니다.
이번주는 아두이노 #42편 "u8g2용 폰트코드 빠르게 받아보기" 입니다.
Stonez56 웹 사이트를 사용하여 글꼴 코드를 빠르게 얻습니다.

현재 베타 버전: https://stonez56.com/u8g2/

이 Stonez56 트랜스코딩 사이트의 장점:
* 사용하기 쉽고 시간을 절약
* 중복 단어 자동 제거
* 매우 작은 파일 생성

사용하기 쉬운:
* 변환하려는 단어를 입력하십시오
* 누르면 보내기
* 생성된 글꼴 코드 다운로드
* Arduino 프로젝트 디렉토리에 저장
* 기본 프로그램에서 include를 사용하여 font.h 프로그램을 가져옵니다.
* u8g2.setFont(u8g2_font_unifont_myfonts) 사용

현재 베타 버전: https://kidsgo.net/u8g2/

#arduino #u8g2 #font #lcd #display #weekendprojectwithstonez56 #diy #maker #oled #esp32 #esp8266 #stonez56 #fontgenerator #kidsgo.net #CJKfonts #CJK

2014/01/15

Change font type and size for Arduino IDE

When I started Arduino IDE the first time, I couldn't believe the default font size is so blurry and small. I finally found a way to change the default fonts and make the fonts more clearly.
Let's change the font size and type in this tutorial.

As you can see below, the default fonts is so blurry Arduino IDE:




First, go to the menu "File"-> "Preferences". You may setup the font size you prefer. I prefered size 18. (See red square with 18 in it. That's my prefered font size.) Then at the bottom of the preference box, there is the path to the file preferences.txt  (see image below)


We need use a text editor to change preferences.txt's content to make font clear.


Use a text editor to open the preferences.txt file in the path shown above. After the file is opened, find "editor.antialias=false" and change false to true. If you want to, you may also change the font size directly in the editor. (See read mark below).

** Don't forget to save the file and restart Arduino IDE for these changes to work.




After restart Arduino IDE, you will see the fonts are much clear and bigger than before!



Thank you!
---------------END----------------------

改變 Arduino 編輯器字型讓它更容易編寫程式


一開始使用 Arduino 時,不知道你是不是和我一樣,覺得Arduino  編輯器的內定字型實在是太不清楚了!今天來改變它的內定字型吧!

Arduino 編輯器模糊又不清楚的字如下:


























先到檔案->打開設定 畫面如下, 先設定你要的字型大小(在紅框位置,我設定18)
再看清楚它設定檔 preferences.txt 的位置,這個 preferences.txt  我們稍候需要用編輯器來變更它的內容,以便讓字變的更清楚。









使用文字編輯工具,我用的是 pico,依先上面顯示的位置,開啟 preferences.txt。在其檔案內容中找到 editor.antialias=false這一行,然後把 false 改成 true 再存檔起來。你也可以在這裡直接改變不同字型或是大小,如底下紅框所示。存檔後,要記得關掉 Arduino 編輯器再重新開啟,這些改變才會生效。






















重新開啟 Arduino 編輯器,你看,字型是否清楚多了!


v