<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syun77</author_name>
  <author_url>https://blog.hatena.ne.jp/syun77/</author_url>
  <blog_title>2dgames.jp</blog_title>
  <blog_url>https://2dgames.jp/</blog_url>
  <categories>
    <anon>Godot</anon>
  </categories>
  <description>この記事では、Label などのノードを使用せずにスクリプトだけで文字を描画する方法について書きます。 デフォルトフォントを使用した描画 スクリプトだけで文字の描画を行う場合は、_draw() 内で、draw_string() を呼び出します。 以下、サンプルコードです。 extends Node2D var font:BitmapFont func _ready(): # デフォルトフォントを取得 font = Control.new().get_font(&quot;font&quot;) func _process(delta): # 描画情報に変更がある場合は update() を呼び出して更新する必要が…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F2dgames.jp%2Fentry%2Fgodot-draw-text%2F&quot; title=&quot;【Godot】スクリプトだけで文字を描画する方法 - 2dgames.jp&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/syun77/20250901/20250901002420.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-11-25 15:03:49</published>
  <title>【Godot】スクリプトだけで文字を描画する方法</title>
  <type>rich</type>
  <url>https://2dgames.jp/entry/godot-draw-text/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
