Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$x = "Poste : "; 「$x のピクセル長を取得する方法」という文字列があります。それは $x が占めるピクセル数ですか?
$x = "Poste : ";
それは存在しません。実際、フォント、フォントサイズ、スタイル(太字、斜体、通常など)に応じて、各文字の幅は異なります。
パレードは、同じ幅の各文字など、CourierNewスタイルのような固定幅フォントを使用することです;)