Ver Mensaje Individual
  #8  
Antiguo 26-07-2007
Avatar de seoane
[seoane] seoane is offline
Miembro Premium
 
Registrado: feb 2004
Ubicación: A Coruña, España
Posts: 3.717
Reputación: 24
seoane Va por buen camino
Puedes hacerlo por código:
Código Delphi [-]
function EnumFontsProc(var LogFont: TLogFont; var TextMetric: TTextMetric;
  FontType: Integer; Data: Pointer): Integer; stdcall;
begin
  TStrings(Data).Add(LogFont.lfFaceName);
  Result:= 1;
end;

procedure CargarFuentes(Items: TStrings);
var
  DC: HDC;
begin
  DC:= GetDC(0);
  Items.Clear;
  EnumFonts(DC, nil, @EnumFontsProc, Pointer(Items));
  ReleaseDC(0, DC);
end;

Por ejemplo:
Código Delphi [-]
  CargarFuentes(Combobox1.Items);
Responder Con Cita