<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
	<title><![CDATA[ 検索語「PICT: image2r41c1c04.png」の検索結果［1件］ - てがろぐ - Fumy Otegaru Memo Logger - ]]></title>
	<link>https://www.nishishi.org/testground/tegalog/</link>
	<description><![CDATA[ お手軽一言掲示板（この辺の文章は「管理画面」の「設定」内にある「フリースペース」タブから編集できます。） ]]></description>
	<language>ja</language>
	<copyright>Copyright 2026</copyright>
	<lastBuildDate>Sun, 26 Apr 2026 18:25:12 +0900</lastBuildDate>
	<generator><![CDATA[ <!-- てがろぐ Version: -->Powered by <a href="https://www.nishishi.com/cgi/tegalog/" rel="noreferrer" target="_top">てがろぐ</a> Ver 4.8.1 ]]></generator>
	<!-- BEGIN ENTRIES -->
	<!-- One Entry Data for RSS Feed -->
<item>
	<title><![CDATA[ &gt;&gt;4789 素早いご対応ありがとうございます ]]></title>
	<description><![CDATA[ <a rel="nofollow" href="https://www.nishishi.org/testground/tegalog/?postid=4789" class="postidlink">&gt;&gt;4789</a> 素早いご対応ありがとうございます<br />
11/4の最新ver.をダウンロードし、下記のようにコメントアウトを書き換えて使用させて頂きました<br />
<br />
<span class="decorationF deco-code">function addTextAreaToImage($filePath, $text) {<br />
&nbsp;&nbsp; &nbsp;$fontFile = &apos;Mplus1-Regular.ttf&apos;; //使用するフォントファイル<br />
&nbsp;&nbsp; &nbsp;//文字化けする場合、以下のどちらかを試してみてください。(//を消してください。)<br />
&nbsp;&nbsp; &nbsp;// $text = mb_convert_encoding($text, &apos;UTF-8&apos;, &apos;auto&apos;); <br />
&nbsp;&nbsp; &nbsp;<span class="decorationC" style="color:red;">$text = mb_convert_encoding($text, &apos;SJIS&apos;, &apos;auto&apos;);</span> </span><br />
<br />
すると文字の合成自体が行われなかったので、当方のChatGPTのログを確認しましたら<br />
<img class="embeddedimage " width="823" height="1030" src="https://www.nishishi.org/testground/tegalog/images/image2r41c1c04.png" alt="image2r41c1c04.png"><br />
<img class="embeddedimage " width="762" height="990" src="https://www.nishishi.org/testground/tegalog/images/image2r41c1c042r.png" alt="image2r41c1c042r.png"><br />
とありましたので、エンコードに関する記述を<span class="decorationC" style="color:red;">imagettfbbox</span>の直前に変更しました<br />
<br />
<span class="decorationF deco-code"><span class="decorationC" style="color:red;">$text = mb_convert_encoding($text, &apos;SJIS&apos;, &apos;auto&apos;);</span><br />
$bbox = imagettfbbox($fontSize, 0, $fontFile, $text);<br />
$textWidth = $bbox&#91;2&#93; - $bbox&#91;&#93;;<br />
$xPosition = $imageWidth - $textWidth - 20;<br />
$yPosition = $imageHeight - 20;<br />
$outlineOffset = 1;</span><br />
<br />
以上で正常に動いたことを確認できました<br />
<a rel="nofollow" href="https://www.nishishi.org/testground/tegalog/?postid=4788" class="postidlink">&gt;&gt;4788</a> にて情報不足な報告をしてしまい大変申し訳ございませんでした<br />
<br />
最新ver.で更に使いやすくなりました！この度は本当にありがとうございます！ -- Posted by あどみ 〔765文字〕 No.4791 ]]></description>
	<link>https://www.nishishi.org/testground/tegalog/?postid=4791</link>
	<guid>https://www.nishishi.org/testground/tegalog/?postid=4791</guid>
	<category>tegalog</category>
	<pubDate>Mon, 04 Nov 2024 18:05:19 +0900</pubDate>
</item>

	<!-- END ENTRIES -->
</channel>
</rss>

