CrAzY hOuSe
Locos por la programación
Permite incluir fuentes (.ttf) en el sistema.
.net

Syndication

Private Declare Function AddFontResource Lib "gdi32" Alias "AddFontResourceA" (ByVal lpFileName As String) As Long
Function IncluirTTF(Fichero As String) As Boolean
    ' Incluye en el sistema un fichero TTF
    ' Parametros: Fichero ruta completa donde se encuentra el fichero origen
    Dim X As Long
    
    X = AddFontResource(Fichero)
        
    ' La función devuelve :
    ' True : Si todo fue correcto.
    ' False : Si hubo algún problema.
    IncluirTTF = IIf(X = 0, False, True)
End Function

Con esta API podrás incluir automáticamente las fuentes que tu programa usa, para que Windows las reconozca y pueda utilizarlas.


Posted mar, jun 12 2001 22:42 by Maverick
Filed under: ,

Add a Comment

(optional)  
(optional)
(required)  
Remember Me?
MavericK
Powered by Community Server (Non-Commercial Edition), by Telligent Systems