Boa tarde pessoal!
Estou com um problema em meu código quando coloco uma referencia de fonte a mesma não carrega, quando faça o mesmo procedimento local colocando os caminhos de pasta funciona normalmente.
Será que alguém poderia me ajudar?
Segue o código.
<html>
<head>
<title>Minha pagina</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- Se não declarar charset por meta, envie um header de igual valor -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<?php
//Carregar imagem tamanho da imagen = 515x76
$img = ImageCreateFromJPEG("base.jpg");
//Definir cor
$cor1 = imagecolorallocate($img, 0, 0, 0);
$cor2 = imagecolorallocate($img, 0, 0, 0);
// carregar fonte...
$fonte1 = 'https://ff.static.1001fonts.net/r/o/roboto-condensed.light.ttf';
$fonte2 = 'https://ff.static.1001fonts.net/r/o/roboto-condensed.light.ttf';
//Escrever nome
$txtNome = $_POST['nome'];
$txtFuncao = $_POST['func'];
$txtEmail = $_POST['email'];
$txtDDD = "+55 ".$_POST['telefone'];
// IMAGEM, TAMANHO_FONTE, 0, POSICAO X, posicao Y, TEXTO_COR, ARQ_FONTE, TEXTO
imagettftext($img, 32, 0, 250, 100, $cor1, $fonte1, $txtNome);
imagettftext($img, 18, 0, 250, 125, $cor1, $fonte2, $txtFuncao);
imagettftext($img, 18, 0, 250, 150, $cor1, $fonte2, $txtEmail);
imagettftext($img, 18, 0, 250, 180, $cor1, $fonte2, $txtDDD);
//Header e output
header('Content-type: image/jpeg');
imagejpeg($img,"Assinatura - ".$txtNome.".jpg");
imagedestroy($img);
header('Location: Assinatura - '.$txtNome.'.jpg');
?>