mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 06:39:31 +01:00 
			
		
		
		
	turbopower ipro: css support for font-family,style,size,weight, bug #14736, from Christian
git-svn-id: trunk@22121 -
This commit is contained in:
		
							parent
							
								
									8d86a00845
								
							
						
					
					
						commit
						41ddb0f42b
					
				@ -133,7 +133,7 @@ end;
 | 
			
		||||
function FontWeightFromString(S: String): TCSSFontWeight;
 | 
			
		||||
begin
 | 
			
		||||
  Result := cfwNormal;
 | 
			
		||||
  S := LowerCase(S);
 | 
			
		||||
  S := trim(LowerCase(S));
 | 
			
		||||
  if S = 'bold' then
 | 
			
		||||
    Result := cfwBold
 | 
			
		||||
  else if S = 'bolder' then
 | 
			
		||||
@ -792,13 +792,13 @@ begin
 | 
			
		||||
      if Args.Count > 3 then ; // background attachment
 | 
			
		||||
      if Args.Count > 4 then ; // background position
 | 
			
		||||
    end
 | 
			
		||||
    else if Command = 'font-family' then
 | 
			
		||||
    else if (Command = 'font-family') and (Args.Count > 0) then
 | 
			
		||||
      Font.Name := Args[0]
 | 
			
		||||
    else if Command = 'font-size' then
 | 
			
		||||
    else if (Command = 'font-size') and (Args.Count > 0) then
 | 
			
		||||
      Font.Size := Args[0]
 | 
			
		||||
    else if Command = 'font-style' then
 | 
			
		||||
    else if (Command = 'font-style') and (Args.Count > 0) then
 | 
			
		||||
      Font.Style := CSSFontStyleFromName(Args[0])
 | 
			
		||||
    else if Command = 'font-weight' then
 | 
			
		||||
    else if (Command = 'font-weight') and (Args.Count > 0) then
 | 
			
		||||
      Font.Weight := FontWeightFromString(Args[0]);
 | 
			
		||||
 | 
			
		||||
    Args.Free;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user